]> git.eshelyaron.com Git - emacs.git/commit
Ascertain font spacing from post table if present
authorPo Lu <luangruo@yahoo.com>
Mon, 30 Oct 2023 07:32:58 +0000 (15:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 30 Oct 2023 07:33:27 +0000 (15:33 +0800)
commitecc8870981ef1a802f9504b1d0f261d19ab372b1
treeef80cdae1f4a47e2740c17b91503384fd8242ca3
parentbdec2d2d464919572ae948ba8150e014aa649191
Ascertain font spacing from post table if present

* src/sfnt.c (sfnt_table_names): Introduce name of post table.
(sfnt_read_post_table): New function.
(main): New tests.

* src/sfnt.h (struct sfnt_post_table): New struct.

* src/sfntfont.c (sfnt_enum_font_1): Read post table, and set
spacing from its is_fixed_pitch value.
(sfntfont_list_1): Compare spacing between both fonts if
supplied in the font spec.
(sfntfont_open): Set FONT_FILE_INDEX as well as
FONT_FULLNAME_INDEX.
src/sfnt.c
src/sfnt.h
src/sfntfont.c