mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibGfx: Prepare the paint code for fonts whose glyphs are color bitmaps
This patch does three things: - Font::has_color_bitmaps() (true if CBLC and CBDT are present) - Glyph now knows when its bitmap comes from a color bitmap font - Painter draws color bitmap glyphs with the appropriate scaling etc
This commit is contained in:
parent
bca35bee6d
commit
e8cc1a4373
8 changed files with 22 additions and 2 deletions
|
@ -71,6 +71,8 @@ public:
|
|||
|
||||
virtual RefPtr<Font> with_size(float point_size) const override;
|
||||
|
||||
virtual bool has_color_bitmaps() const override { return m_font->has_color_bitmaps(); }
|
||||
|
||||
private:
|
||||
NonnullRefPtr<VectorFont> m_font;
|
||||
float m_x_scale { 0.0f };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue