diff options
author | Werner Lemberg <wl@gnu.org> | 2017-07-12 21:58:35 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2017-07-12 21:58:35 +0200 |
commit | b5cab5c9ca4afd8282a7f187185336c1c543c623 (patch) | |
tree | 8d213335eddb632d059cc163a64578c5ea8e8e0e | |
parent | 229a5535b53b308a8edda894fe112517c6d03b00 (diff) | |
download | freetype2-b5cab5c9ca4afd8282a7f187185336c1c543c623.tar.gz |
Document how to scale manually.
-rw-r--r-- | include/freetype/freetype.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index 7301863bb..34ad48a48 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -1530,7 +1530,13 @@ FT_BEGIN_HEADER /* values of the corresponding fields in @FT_FaceRec. Some values */ /* like ascender or descender are rounded for historical reasons; */ /* more precise values (for outline fonts) can be derived by scaling */ - /* the corresponding @FT_FaceRec values manually. */ + /* the corresponding @FT_FaceRec values manually, with code similar */ + /* to the following. */ + /* */ + /* { */ + /* scaled_ascender = FT_MulFix( face->root.ascender, */ + /* size_metrics->y_scale ); */ + /* } */ /* */ /* Note that due to glyph hinting and the selected rendering mode */ /* these values are usually not exact; consequently, they must be */ |