]> git.eshelyaron.com Git - emacs.git/commit
Speed up opening fonts on Haiku
authorPo Lu <luangruo@yahoo.com>
Thu, 5 May 2022 09:46:05 +0000 (09:46 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 5 May 2022 09:46:05 +0000 (09:46 +0000)
commit1468eef301a59346adc47ef19a740f4e2c3737a2
treeee16c08d185100385231849da505310cf6e9ff5e
parent30caeb789659441f8feb76b24f3d0b1f60125085
Speed up opening fonts on Haiku

* src/font.h (font_property_index): Note that some font drivers
use the extra data in a font entity to store driver-specific
information.

* src/haiku_font_support.cc (BFont_find): Set font indices.
(be_open_font_at_index): New function.
(BFont_open_pattern): Clean up coding style.
* src/haiku_support.h (enum haiku_font_specification)
(struct haiku_font_pattern): New fields and specifications for
indices.
* src/haikufont.c (haikufont_pattern_to_entity, haikufont_open):
Use indices to open fonts if available in the extra data.
src/font.h
src/haiku_font_support.cc
src/haiku_support.h
src/haikufont.c