mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibTTF: Initial work on parsing and rasterizing composite glyphs.
This doesn't handle every case yet.
This commit is contained in:
parent
bd354bc2ae
commit
1e1d2cdedf
4 changed files with 328 additions and 220 deletions
|
@ -38,6 +38,15 @@ public:
|
|||
: m_values { 1, 0, 0, 1, 0, 0 }
|
||||
{
|
||||
}
|
||||
AffineTransform(float a, float b, float c, float d, float e, float f)
|
||||
{
|
||||
m_values[0] = a;
|
||||
m_values[1] = b;
|
||||
m_values[2] = c;
|
||||
m_values[3] = d;
|
||||
m_values[4] = e;
|
||||
m_values[5] = f;
|
||||
}
|
||||
|
||||
AffineTransform(float a, float b, float c, float d, float e, float f)
|
||||
: m_values { a, b, c, d, e, f }
|
||||
|
@ -72,6 +81,8 @@ public:
|
|||
AffineTransform& rotate_radians(float);
|
||||
AffineTransform& multiply(const AffineTransform&);
|
||||
|
||||
AffineTransform operator*(const AffineTransform&) const;
|
||||
|
||||
private:
|
||||
float m_values[6] { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue