RE: Issue rendering fonts with fixed sizes
| Newsgroups | gmane.comp.fonts.freetype.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> On Behalf Of Lawrence D'Oliveiro Sent: Wednesday, November 25, 2020 5:23 PM To: [email protected] Subject: Re: Issue rendering fonts with fixed sizes On Wed, 25 Nov 2020 17:05:38 -0800, [email protected] 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>.