]> git.eshelyaron.com Git - emacs.git/commit
Extract font foundry metadata from the OS/2 table
authorPo Lu <luangruo@yahoo.com>
Tue, 12 Sep 2023 02:37:55 +0000 (10:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 12 Sep 2023 02:37:55 +0000 (10:37 +0800)
commitc465740273f690510f86bce864c379c4c26c0382
treea713fa4eefc0aa4b5278085e1d74549d55726c1a
parente25ad6e2a30f779614836dc4204992f2fd121693
Extract font foundry metadata from the OS/2 table

* src/sfnt.c (sfnt_table_names): Append an entry for OS/2
tables.
(sfnt_read_OS_2_table): New function.
(main): Introduce a new test for the OS/2 table reader.

* src/sfnt.h (sfnt_read_OS_2_table): New declaration.

* src/sfntfont.c (sfnt_decode_foundry_name): Delete function.
(sfnt_enum_font_1): Read the font's OS/2 table and extract the
foundry name from there.  Use `misc' if absent.
(sfntfont_desc_to_entity, sfntfont_open): Cease interning
desc->designer, as that is now a symbol.
(syms_of_sfntfont) <Qmisc>: New defsym Qmisc.  (bug#65865)
src/sfnt.c
src/sfnt.h
src/sfntfont.c