1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

LibTTF: Port width calculation changes from BitmapFont

This commit is contained in:
LuK1337 2021-07-11 01:05:36 +02:00 committed by Andreas Kling
parent c0f9adabd6
commit 99013ac3d5
2 changed files with 19 additions and 19 deletions

View file

@ -151,6 +151,9 @@ private:
float m_point_width { 0.0f };
float m_point_height { 0.0f };
mutable HashMap<u32, RefPtr<Gfx::Bitmap>> m_cached_glyph_bitmaps;
template<typename T>
int unicode_view_width(T const& view) const;
};
}