Correct font metrics, bitmap glyph metrics and underline.
Correct ScaleFontMetrics to scale all of the metrics. Also update the
test fonts, since they were created with the previously unscaled
metrics.
Fix the ascent, descent, and underline position for bitmap glyphs with
FreeType.
Change-Id: I8c2f6e9d6a7e86b0bb08dc619f62ffcce4ad2df2
Reviewed-on: https://skia-review.googlesource.com/108600
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
diff --git a/tools/create_test_font.cpp b/tools/create_test_font.cpp
index 4fd8dbb..7b8fd43 100644
--- a/tools/create_test_font.cpp
+++ b/tools/create_test_font.cpp
@@ -430,7 +430,7 @@
}
int main(int , char * const []) {
- generate_fonts("/Library/Fonts/");
+ generate_fonts("/Library/Fonts/"); // or /usr/share/fonts/truetype/ttf-liberation/
generate_index(DEFAULT_FONT_NAME);
return 0;
}