mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove unused QGlyphLayoutInstance struct
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bfaae0ad6c
commit
e1b15fd1ae
1 changed files with 0 additions and 21 deletions
|
@ -116,15 +116,6 @@ struct QGlyphJustification
|
|||
};
|
||||
Q_DECLARE_TYPEINFO(QGlyphJustification, Q_PRIMITIVE_TYPE);
|
||||
|
||||
struct QGlyphLayoutInstance
|
||||
{
|
||||
QFixedPoint offset;
|
||||
QFixedPoint advance;
|
||||
HB_Glyph glyph;
|
||||
QGlyphJustification justification;
|
||||
HB_GlyphAttributes attributes;
|
||||
};
|
||||
|
||||
struct QGlyphLayout
|
||||
{
|
||||
// init to 0 not needed, done when shaping
|
||||
|
@ -179,18 +170,6 @@ struct QGlyphLayout
|
|||
inline QFixed effectiveAdvance(int item) const
|
||||
{ return (advances_x[item] + QFixed::fromFixed(justifications[item].space_18d6)) * !attributes[item].dontPrint; }
|
||||
|
||||
inline QGlyphLayoutInstance instance(int position) const {
|
||||
QGlyphLayoutInstance g;
|
||||
g.offset.x = offsets[position].x;
|
||||
g.offset.y = offsets[position].y;
|
||||
g.glyph = glyphs[position];
|
||||
g.advance.x = advances_x[position];
|
||||
g.advance.y = advances_y[position];
|
||||
g.justification = justifications[position];
|
||||
g.attributes = attributes[position];
|
||||
return g;
|
||||
}
|
||||
|
||||
inline void clear(int first = 0, int last = -1) {
|
||||
if (last == -1)
|
||||
last = numGlyphs;
|
||||
|
|
Loading…
Add table
Reference in a new issue