|
|
Reference Manual - 1.0.1 | ||
| |||
No summary yet...
| Methods of IDirectFBFont | ||
|---|---|---|
|
Retrieving information 回复信息 |
GetAscender |
Get the distance from the baseline to the top of the logical extents of this font. 获得从基线到字体逻辑宽度的顶部的距离。 |
| GetDescender |
Get the distance from the baseline to the bottom of the logical extents of this font. 获得从基线到字体逻辑宽度的底部的距离。 | |
| GetHeight |
Get the logical height of this font. This is the vertical distance from one baseline to the next when writing several lines of text. Note that this value does not correspond the height value specified when loading the font. 获得字体的逻辑高度。当写几行文本的时候,是从一条基线到另一条基线的垂直距离。当加载字体时,记录指定高度不一致的值。 | |
| GetMaxAdvance |
Get the maximum character width. 获得最大的字符宽度。 | |
| GetKerning |
Get the kerning to apply between two glyphs specified by their character codes. 获得字距调整以适应在通过字符码绘画两个被指定的文字时。 | |
|
Measurements 尺寸 | GetStringWidth |
Get the logical width of the specified string as if it were drawn with this font. 获得被指定字符串的逻辑宽度,似乎它是被这个种字体所画。 |
| GetStringExtents |
Get the logical and real extents of the specified string as if it were drawn with this font. 获得被指定字符串的逻辑宽度和实时宽度,似乎它是被这个种字体所画。 | |
| GetGlyphExtents |
Get the extents of a glyph specified by its character code. 获得一个通过字符码指定绘画的文字宽度。 | |
| GetStringBreak |
Get the next explicit or automatic break within a string along with the logical width of the text, the string length, and a pointer to the next text line. 在一个字符串随着文本的逻辑宽度,字符串长度和到下一个文本行的指针范围内获得下一个清楚的或者自动中止。 | |
| Encodings | SetEncoding |
Change the default encoding used when the font is set at a surface. 当字体设置在一个表面上时,改变被使用的默认编码。 |
| EnumEncodings |
Enumerate all provided text encodings. 列出所有预备好的文本编码。 | |
| FindEncoding |
Find an encoding by its name. 通过名字找它的编码。 | |
| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License |