Home | History | Annotate | Download | only in sfntly

Lines Matching defs:Font

17 #include "sfntly/font.h"
53 * Font class
55 Font::~Font() {}
57 bool Font::HasTable(int32_t tag) const {
61 Table* Font::GetTable(int32_t tag) {
67 const TableMap* Font::GetTableMap() {
71 void Font::Serialize(OutputStream* os, IntegerList* table_ordering) {
83 Font::Font(int32_t sfnt_version, ByteVector* digest)
90 void Font::BuildTableHeadersForSerialization(IntegerList* table_ordering,
116 void Font::SerializeHeader(FontOutputStream* fos,
141 void Font::SerializeTables(FontOutputStream* fos,
151 throw IOException("Table out of sync with font header.");
166 void Font::GenerateTableOrdering(IntegerList* default_table_ordering,
198 void Font::DefaultTableOrdering(IntegerList* default_table_ordering) {
214 * Font::Builder class
216 Font::Builder::~Builder() {}
218 CALLER_ATTACH Font::Builder* Font::Builder::GetOTFBuilder(FontFactory* factory,
225 CALLER_ATTACH Font::Builder* Font::Builder::GetOTFBuilder(
234 CALLER_ATTACH Font::Builder* Font::Builder::GetOTFBuilder(
240 bool Font::Builder::ReadyToBuild() {
246 // TODO(stuartg): font level checks - required tables etc?
257 CALLER_ATTACH Font* Font::Builder::Build() {
258 FontPtr font = new Font(sfnt_version_, &digest_);
261 // Note: Different from Java. Directly use font->tables_ here to avoid
263 BuildTablesFromBuilders(font, &table_builders_, &font->tables_);
268 return font.Detach();
271 void Font::Builder::SetDigest(ByteVector* digest) {
276 void Font::Builder::ClearTableBuilders() {
280 bool Font::Builder::HasTableBuilder(int32_t tag) {
284 Table::Builder* Font::Builder::GetTableBuilder(int32_t tag) {
290 Table::Builder* Font::Builder::NewTableBuilder(int32_t tag) {
298 Table::Builder* Font::Builder::NewTableBuilder(int32_t tag,
313 void Font::Builder::RemoveTableBuilder(int32_t tag) {
317 Font::Builder::Builder(FontFactory* factory)
322 void Font::Builder::LoadFont(InputStream* is) {
333 void Font::Builder::LoadFont(WritableFontData* wfd,
343 int32_t Font::Builder::SfntWrapperSize() {
348 void Font::Builder::BuildAllTableBuilders(DataBlockMap* table_data,
361 Table::Builder* Font::Builder::GetTableBuilder(Header* header,
366 void Font::Builder::BuildTablesFromBuilders(Font* font,
369 UNREFERENCED_PARAMETER(font);
415 void Font::Builder::InterRelateBuilders(TableBuilderMap* builder_map) {
489 void Font::Builder::ReadHeader(FontInputStream* is,
510 void Font::Builder::ReadHeader(ReadableFontData* fd,
533 void Font::Builder::LoadTableData(HeaderOffsetSortedSet* headers,
554 void Font::Builder::LoadTableData(HeaderOffsetSortedSet* headers,