nativeReadFrom method
Implementation
@override
void nativeReadFrom(FontC p) {
structOnOp((o) {
o.ref.recs = p.recs;
o.ref.glyphs = p.glyphs;
});
baseSize = p.baseSize;
glyphCount = p.glyphCount;
glyphPadding = p.glyphPadding;
texture.nativeReadFrom(p.texture);
if (p.recs.address != 0) recs = .generate(p.glyphCount, (i) => (p.recs + i).toD());
if (p.glyphs.address != 0) glyphs = .generate(p.glyphCount, (i) => (p.glyphs + i).toD());
}