]> git.eshelyaron.com Git - emacs.git/commit
Refactor sfntfont.c
authorPo Lu <luangruo@yahoo.com>
Mon, 27 Mar 2023 01:58:42 +0000 (09:58 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 27 Mar 2023 01:58:42 +0000 (09:58 +0800)
commit67a325243c6942ff367b24211999554690c328d2
tree78bc4316505133c6db03a3a5c3b97f9466b76a4f
parenta1c5461edabb8b4c336a708c84aa65e28b2695b0
Refactor sfntfont.c

* src/sfntfont.c (struct sfnt_font_tables): New structure.
(struct sfnt_font_desc): New field `tables'.
(struct sfnt_font_info): New field `desc'.
(sfntfont_setup_interpreter): Drop fd arguments and don't try to
load interpreter tables.
(sfnt_open_tables, sfnt_close_tables): New functions.
(sfnt_reference_font_tables, sfnt_dereference_font_tables): New
functions.
(sfntfont_open, sfntfont_close): Implement in terms of those
functions in order to share tables.
src/sfntfont.c