[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Fwd: Calculating terminal emulator cell size
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Fwd: Calculating terminal emulator cell size |
Date: |
Fri, 18 Nov 2016 21:32:32 +0100 (CET) |
> I'm using FreeType for a terminal emulator application, and I need
> some advice for calculating the appropriate size for cells in the
> terminal emulator, given a monospace font.
Have you tried the various FT_SIZE_REQUEST_TYPE_XXX requests?
> Right now I'm just using FT_FaceRec.bbox as follows: [...]
No time to check that in detail. If the above fails I suggest that
you get the metrics from, say, digit zero and use this to scale the
font – if the font is intended as a mono-space font, the digits *must*
fit :-)
Werner