aboutsummaryrefslogtreecommitdiffstats
path: root/java/org
diff options
context:
space:
mode:
authorPo Lu2023-03-27 11:24:05 +0800
committerPo Lu2023-03-27 11:24:05 +0800
commit18b34e9ca01deff8e0bde4b1e53293f27712a149 (patch)
tree4e80d1cbf5f6211f03c834425f88bc9657fdfb71 /java/org
parent67a325243c6942ff367b24211999554690c328d2 (diff)
downloademacs-18b34e9ca01deff8e0bde4b1e53293f27712a149.tar.gz
emacs-18b34e9ca01deff8e0bde4b1e53293f27712a149.zip
Refactor sfntfont.c
* src/sfnt.c (sfnt_build_glyph_outline): Take scale, not head and pixel size. (sfnt_scale_metrics_to_pixel_size): Delete function. (sfnt_get_scale): New function. (main): Update tests. * src/sfnt.h (PROTOTYPE): Update prototypes. * src/sfntfont.c (struct sfnt_outline_cache) (sfntfont_get_glyph_outline, struct sfnt_font_info) (sfntfont_open): Save scale in font information and use it. (sfntfont_measure_instructed_pcm): Delete function. (sfntfont_measure_pcm): Make this the only ``measure pcm'' function. (sfntfont_draw): Rely on sfntfont_get_glyph_outline for the scale.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions