Andreas Kling
8aec1cd232
LibTTF: ScaledFont should have a NonnullRefPtr<TTF::Font>
...
A ScaledFont without an underlying TTF::Font would not be valid.
2021-02-17 23:45:21 +01:00
Stephan Unverwerth
de811faf55
LibTTF: Address some minor TODOs in the font implementation
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
05d31cbeeb
LibTTF: Add hack for recognizing fixed-width fonts
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
3b67b55c84
LibGfx: draw_glyph_or_emoji fix check for available glyph
...
This would cause question marks to be rendered when a ttf with fewer
glyphs than the value of the code_point was used.
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
85158dc0ad
LibGfx+LibTTF: Allow Painter to draw TTF glyphs
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
0f41f5d9ba
LibGUI+LibGfx+LibTTF: Make fontpicker handle TTF fonts
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
179dba652e
LibGfx: Insert pixel and ttf fonts into Typeface structure
...
This adds a new structure 'Typeface' to the FontDatabase that
represents all fonts of the same family and variant.
It can contain a list of BitmapFonts with varying size but of
the same family and weight or a pointer to a single TTF font
for all sizes of this Typeface.
2021-02-15 08:50:48 +01:00
Stephan Unverwerth
2c4e13f14a
LibTTF: Parse TTF "name" table
2021-02-15 08:50:48 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00