More improvements for text shaping.

This commit is contained in:
Martín Lucas Golini
2024-06-14 02:23:53 -03:00
parent b3cd551ff4
commit 3bed787795
3 changed files with 268 additions and 181 deletions

View File

@@ -133,6 +133,8 @@ class EE_API FontTrueType : public Font {
void* hb() const { return mHBFont; }
bool setCurrentSize( unsigned int characterSize ) const;
protected:
friend class Text;
@@ -179,8 +181,6 @@ class EE_API FontTrueType : public Font {
Rect findGlyphRect( Page& page, unsigned int width, unsigned int height ) const;
bool setCurrentSize( unsigned int characterSize ) const;
Page& getPage( unsigned int characterSize ) const;
typedef UnorderedMap<unsigned int, std::unique_ptr<Page>>