]> 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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:52:38 +0000 (21:52 +0100)
commit653783c7c250582ce56207408fdad8b070d2b09f
treefda1da2080eb54969b573fc96540e5c92361d079
parentb2ae5c7eff869fca090a240e6ffc98036ecededc
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.

(cherry picked from commit 103f36cced37eed1bb51cd704b0a64b42f7b8144)
src/sfnt.c
src/sfnt.h
src/sfntfont.c