// Copyright (c) 2009-2017 The OTS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.
this->ypels.reserve(num_glyphs); for (unsigned i = 0; i < num_glyphs; ++i) {
uint8_t pel = 0; if (!table.ReadU8(&pel)) { return Error("Failed to read pixels for glyph %d", i);
} this->ypels.push_back(pel);
}
returntrue;
}
bool OpenTypeLTSH::Serialize(OTSStream *out) { const uint16_t num_ypels = static_cast<uint16_t>(this->ypels.size()); if (num_ypels != this->ypels.size() ||
!out->WriteU16(this->version) ||
!out->WriteU16(num_ypels)) { return Error("Failed to write table header");
} for (uint16_t i = 0; i < num_ypels; ++i) { if (!out->Write(&(this->ypels[i]), 1)) { return Error("Failed to write pixel size for glyph %d", i);
}
}
returntrue;
}
bool OpenTypeLTSH::ShouldSerialize() { return Table::ShouldSerialize() && // this table is not for CFF fonts.
GetFont()->GetTable(OTS_TAG_GLYF) != NULL;
}
} // namespace ots
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.