[sfnt] Fix documentation of `tt_face_get_metrics'.

Problem reported in Savannah bug #39383.
This commit is contained in:
Werner Lemberg 2013-07-02 10:36:26 +02:00
parent a411de9157
commit aa0ac3239c
2 changed files with 17 additions and 14 deletions

View File

@ -200,12 +200,12 @@
static const char af_latin_blue_chars[AF_LATIN_MAX_BLUES] static const char af_latin_blue_chars[AF_LATIN_MAX_BLUES]
[AF_LATIN_MAX_TEST_CHARACTERS + 1] = [AF_LATIN_MAX_TEST_CHARACTERS + 1] =
{ {
"THEZOCQS", "THEZOCQS", /* capital top */
"HEZLOCUS", "HEZLOCUS", /* capital bottom */
"fijkdbh", "fijkdbh", /* small f top */
"xzroesc", "xzroesc", /* small top */
"xzroesc", "xzroesc", /* small bottom */
"pqgjy" "pqgjy" /* small minor */
}; };

View File

@ -183,20 +183,23 @@
/* tt_face_get_metrics */ /* tt_face_get_metrics */
/* */ /* */
/* <Description> */ /* <Description> */
/* Returns the horizontal or vertical metrics in font units for a */ /* Return the horizontal or vertical metrics in font units for a */
/* given glyph. The metrics are the left side bearing (resp. top */ /* given glyph. The values are the left side bearing (top side */
/* side bearing) and advance width (resp. advance height). */ /* bearing for vertical metrics) and advance width (advance height */
/* for vertical metrics). */
/* */ /* */
/* <Input> */ /* <Input> */
/* header :: A pointer to either the horizontal or vertical metrics */ /* face :: A pointer to the TrueType face structure. */
/* structure. */
/* */ /* */
/* idx :: The glyph index. */ /* vertical :: If set to TRUE, get vertical metrics. */
/* */
/* gindex :: The glyph index. */
/* */ /* */
/* <Output> */ /* <Output> */
/* bearing :: The bearing, either left side or top side. */ /* abearing :: The bearing, either left side or top side. */
/* */ /* */
/* advance :: The advance width resp. advance height. */ /* aadvance :: The advance width or advance height, depending on */
/* the `vertical' flag. */
/* */ /* */
FT_LOCAL_DEF( FT_Error ) FT_LOCAL_DEF( FT_Error )
tt_face_get_metrics( TT_Face face, tt_face_get_metrics( TT_Face face,