aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDan Aloni <alonid@gmail.com>2017-10-08 15:51:12 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-08 22:20:58 -0700
commitb03ec0df37cc7967733a53383e1bb450e8e05369 (patch)
tree3766a02f9428af33c44791442ea73eb35fc68647 /README.md
parent619e8778196104adb26bc9e735245d330a98ff38 (diff)
downloadalacritty-b03ec0df37cc7967733a53383e1bb450e8e05369.tar.gz
alacritty-b03ec0df37cc7967733a53383e1bb450e8e05369.zip
Support bitmap fonts
To allow FontConfig to work with Bitmap font, we shall pass the size we are interested in, and account for the size returned in the font matching process. This is, because we cannot scale those fonts. FontConfig will return the closest match, and we take its returned pixel size back when we are rendering the glyphs. There's an oddity when call set_char_size in TrueType - we need to behave as if the DPI is 72. It is due to the following macro: #define FT_REQUEST_HEIGHT( req ) \ ( (req)->vertResolution \ ? ( (req)->height * (FT_Pos)(req)->vertResolution + 36 ) / 72 \ : (req)->height ) Further work can allow for integer scaling of the largest bitmap font variant. Tested with Terminus PCF-type font under Linux. This addresses issue #582 .
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions