mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 06:12:16 +03:00
e287474973
This font is a bit funky; the bitmap strikes are only 4px wide: ``` ; ftdump gohufont.otb There is 1 face in this file. ----- Face number: 0 ----- font name entries family: Gohu GohuFont style: Regular postscript: UNAVAILABLE created: 1904-01-01 modified: 1904-01-01 revision: 1.00 glyph count: 1694 font type entries FreeType driver: truetype sfnt wrapped: yes type: fixed size direction: horizontal fixed width: no glyph names: no fixed size 0: height 11, width 3 size 11.000, x_ppem 11.000, y_ppem 11.000 1: height 14, width 4 size 14.000, x_ppem 14.000, y_ppem 14.000 charmaps (1) 0: format 4, platform 3, encoding 1 language 0 (active) ``` but using that the cell size isn't right. We draw from the metrics we compute via cell_metrics to get more information; we don't get a valid height from that (just 0!), but we do get the much more plausible width of 8 pixels. So we take the max of the two techniques for figuring the metrics. That appears to work out, and also doesn't appear to break emoji fonts. refs: #1165 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |