Lines Matching defs:wfd
56 WritableFontDataPtr wfd;
57 wfd.Attach(WritableFontData::CreateWritableFontData(b));
58 if (IsCollection(wfd)) {
59 LoadCollection(wfd, output);
63 font.Attach(LoadSingleOTF(wfd));
85 WritableFontDataPtr wfd;
86 wfd.Attach(WritableFontData::CreateWritableFontData(b));
87 if (IsCollection(wfd)) {
88 LoadCollectionForBuilding(wfd, output);
92 builder.Attach(LoadSingleOTFForBuilding(wfd, 0));
117 CALLER_ATTACH Font* FontFactory::LoadSingleOTF(WritableFontData* wfd) {
119 builder.Attach(LoadSingleOTFForBuilding(wfd, 0));
135 void FontFactory::LoadCollection(WritableFontData* wfd, FontArray* output) {
137 LoadCollectionForBuilding(wfd, &builders);
157 FontFactory::LoadSingleOTFForBuilding(WritableFontData* wfd,
161 Font::Builder::GetOTFBuilder(this, wfd, offset_to_offset_table);
170 WritableFontDataPtr wfd;
171 wfd.Attach(WritableFontData::CreateWritableFontData(is->Available()));
172 wfd->CopyFrom(is);
173 LoadCollectionForBuilding(wfd, builders);
176 void FontFactory::LoadCollectionForBuilding(WritableFontData* wfd,
178 int32_t ttc_tag = wfd->ReadULongAsInt(Offset::kTTCTag);
180 int32_t version = wfd->ReadFixed(Offset::kVersion);
182 int32_t num_fonts = wfd->ReadULongAsInt(Offset::kNumFonts);
189 int32_t offset = wfd->ReadULongAsInt(offset_table_offset);
191 builder.Attach(LoadSingleOTFForBuilding(wfd, offset));