Adding kerning to the basic text rendering algorithm is easy: When a kerning pair is found, simply add the scaled kerning distance to the pen position before step 4.
在基本文本渲染算法上增加字距调整非常简单,当一个字距调整对发现了,简单地在第4步前,将缩放后的调整距离增加到笔位置即可。
Using the moveTo (x, y) method, the pen can be moved to a new position.
通过使用moveTo (x, y)方法,可以将画笔移动到一个新的位置。
If you've not yet put pen to paper, the best thing to do is put yourself in the position of a journalist.
如果你还没提笔开动,那么你最好将自己放在记者的角度来审视自己。
应用推荐