summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2017-07-12 21:58:35 +0200
committerWerner Lemberg <wl@gnu.org>2017-07-12 21:58:35 +0200
commitb5cab5c9ca4afd8282a7f187185336c1c543c623 (patch)
tree8d213335eddb632d059cc163a64578c5ea8e8e0e
parent229a5535b53b308a8edda894fe112517c6d03b00 (diff)
downloadfreetype2-b5cab5c9ca4afd8282a7f187185336c1c543c623.tar.gz
Document how to scale manually.
-rw-r--r--include/freetype/freetype.h8
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 */