]> git.eshelyaron.com Git - emacs.git/commit
Improve SFNT driver lookup efficiency
authorPo Lu <luangruo@yahoo.com>
Mon, 20 Feb 2023 03:38:59 +0000 (11:38 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 20 Feb 2023 03:38:59 +0000 (11:38 +0800)
commit34ba481c8ea86da7922129f684c18b7aba186947
tree59a7d416cb2089cc958dca4a4a543d2efd61960e
parentb91396bace7e09ba1dc0430ce5e2b5b3000fe77a
Improve SFNT driver lookup efficiency

* src/fontset.c (fontset_find_font): Add compatibility test to
registry strangeness case.
* src/sfnt.c (sfnt_read_cmap_table): Don't read subtable data if
DATA is NULL.
* src/sfntfont.c (struct sfnt_font_desc): New field `registry'.
(sfnt_registry_for_subtable): New function.
(sfntfont_identify_cmap): Move above sfnt_grok_registry.
(sfnt_grok_registry): New function.
(sfnt_enum_font_1): Call it.
(sfntfont_registries_compatible_p): New function.
(sfntfont_list_1): Check registry compatibility.
(sfntfont_registry_for_desc): New function.
(mark_sfntfont): Mark desc->registry.
src/fontset.c
src/sfnt.c
src/sfntfont.c