是否有可能样式android的字体风格与领先和跟踪? [英] Is it possible to style the android fonts styles with leading and tracking?
问题描述
是否有可能在Android的字体样式如下。
如果您有任何意见,请与我分享。
-
您可以更改主要通过调用TextView中的方法,<一个href="http://developer.android.com/reference/android/widget/TextView.html#setLineSpacing%28float,%20float%29"><$c$c>setLineSpacing()$c$c>或者布局改变TextView中的相应的XML属性(
安卓lineSpacingExtra
或安卓lineSpacingMultiplier
)。 -
作为回答<一href="http://stackoverflow.com/questions/1640659/how-to-adjust-text-kerning-in-android-textview/1644061#1644061">here:
AFAIK,你不能在TextView的调整字距。您可以调整字距如果使用2D图形API绘制在画布上自己的文字。
Is it possible to have the followings in android font styling.
Leading (the space vertically between lines of text - name comes from the physical piece of lead that used to be used in mechanical printing process to separate lines of text).
Tracking (the horizontal space between each character).
If you have any ideas please share with me.
You can change leading by calling TextView's method
setLineSpacing()
or changing corresponding XML attributes of TextView in layout (android:lineSpacingExtra
orandroid:lineSpacingMultiplier
).As answered here:
AFAIK, you cannot adjust kerning in TextView. You may be able to adjust kerning if you draw the text on the Canvas yourself using the 2D graphics APIs.
这篇关于是否有可能样式android的字体风格与领先和跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!