fixed cursor position calculation
fixed lineHeight composing