12 BufferStreamReadOnly stream{vbfData};
19 if (this->version != 3) {
28 const auto glyphCount = stream.read<uint16_t>();
29 const auto glyphLUT = stream.read<std::array<uint8_t, 256>>();
31 std::vector<Glyph> glyphList;
32 glyphList.reserve(glyphCount);
33 for (uint16_t i = 0; i < glyphCount; i++) {
34 auto& [position, size, abcSpacing] = glyphList.emplace_back();
35 stream >> position[0] >> position[1];
36 stream >> size[0] >> size[1];
37 stream >> abcSpacing[0] >> abcSpacing[1] >> abcSpacing[2];
39 for (
int i = 0; i < this->
glyphs.size(); i++) {
40 this->
glyphs[i] = glyphList[glyphLUT[i]];