Optimized font character lookup using binary search instead of linear search. Fonts now are required to have the character index ordered by code point. * font/font.c (load_font_index): Verify that fonts have ordered character indices. (find_glyph): Use binary search instead of linear search to find a character in a font. |
||
|---|---|---|
| .. | ||
| font.c | ||
| font_cmd.c | ||