[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Issue rendering fonts with fixed sizes
From: |
stephan |
Subject: |
RE: Issue rendering fonts with fixed sizes |
Date: |
Wed, 25 Nov 2020 17:33:18 -0800 |
Thanks for the quick reply.
I had tried that before with the same error / result.
Is having the BDF module enabled required or some other options for font
with bitmap strikes to work correctly?
-----Original Message-----
From: Freetype <freetype-bounces+stephan=unity3d.com@nongnu.org> On Behalf
Of Lawrence D'Oliveiro
Sent: Wednesday, November 25, 2020 5:23 PM
To: freetype@nongnu.org
Subject: Re: Issue rendering fonts with fixed sizes
On Wed, 25 Nov 2020 17:05:38 -0800, stephan@unity3d.com wrote:
> I am currently testing with the NotoColorEmoji.ttf font.
I just did some rendering with this exact same font.
> // Setting the pixel size returns no error since 109 is a size
> supported by this font.
>
> m_Error = FT_Set_Pixel_Sizes(m_Face, 109, 109);
Try FT_Select_Size with an index into the available-sizes table instead.
Since Noto Color Emoji only comes in one size, an index of 0 should work.
In my example
<https://github.com/ldo/harfpy_examples/blob/master/region-flags>, I found
it easier to use a graphics engine like Cairo to take care of the
font-sizing headaches for me.
The output from that program can be seen here
<https://www.deviantart.com/default-cube/art/Region-Flags-861126407>.