mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[VarComposite] Minor rewrite
This commit is contained in:
1 parent
b9b85da3c9
commit
e2be7865f3
1 file changed
+4
-4
@@ -65,17 +65,17 @@ struct VarCompositeGlyphRecord
|
||||
hb_codepoint_t get_gid () const
|
||||
{
|
||||
if (flags & GID_IS_24BIT)
|
||||
return StructAfter<const HBGlyphID24> (numAxes);
|
||||
return * (const HBGlyphID24 *) &pad;
|
||||
else
|
||||
return StructAfter<const HBGlyphID16> (numAxes);
|
||||
return * (const HBGlyphID16 *) &pad;
|
||||
}
|
||||
|
||||
void set_gid (hb_codepoint_t gid)
|
||||
{
|
||||
if (flags & GID_IS_24BIT)
|
||||
StructAfter<HBGlyphID24> (numAxes) = gid;
|
||||
* (HBGlyphID24 *) &pad = gid;
|
||||
else
|
||||
StructAfter<HBGlyphID16> (numAxes) = gid;
|
||||
* (HBGlyphID16 *) &pad = gid;
|
||||
}
|
||||
|
||||
unsigned get_numAxes () const
|
||||
|
||||
Reference in new issue
Block a user