]> git.eshelyaron.com Git - emacs.git/commit
Enable the new font scaler
authorPo Lu <luangruo@yahoo.com>
Mon, 18 Dec 2023 03:10:40 +0000 (11:10 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 18 Dec 2023 03:10:40 +0000 (11:10 +0800)
commit103f36cced37eed1bb51cd704b0a64b42f7b8144
tree78a4e477432cfedd53f007ceb95823c93f4b8079
parent678a594f4f3ddd24a46253d77237580fe4db9fc1
Enable the new font scaler

* src/sfnt.c (sfnt_curve_is_flat): Tighten threshold for flat
curves.
(sfnt_insert_raster_step): Rewrite loop for clarity.
(sfnt_poly_set_steps): New function; fill small spans with a
plain unexceptional loop rather than memset.
(sfnt_poly_steps): Call that function.
(sfnt_verbose, main): Adjust tests such that the scaler can be
selected at runtime.

* src/sfnt.h: Update prototypes.

* src/sfntfont.c (sfntfont_get_glyph_raster)
(syms_of_sfntfont) <sfnt_raster_glyphs_exactly>: New variable.
src/sfnt.c
src/sfnt.h
src/sfntfont.c