webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Functions
font.cc File Reference
#include "./font.h"
#include <algorithm>
#include "./buffer.h"
#include "./port.h"
#include "./store_bytes.h"
#include "./table_tags.h"
#include "./woff2_common.h"

Namespaces

 woff2
 

Functions

bool woff2::ReadTrueTypeFont (Buffer *file, const uint8_t *data, size_t len, Font *font)
 
bool woff2::ReadCollectionFont (Buffer *file, const uint8_t *data, size_t len, Font *font, std::map< uint32_t, Font::Table *> *all_tables)
 
bool woff2::ReadTrueTypeCollection (Buffer *file, const uint8_t *data, size_t len, FontCollection *font_collection)
 
bool woff2::ReadFont (const uint8_t *data, size_t len, Font *font)
 
bool woff2::ReadFontCollection (const uint8_t *data, size_t len, FontCollection *font_collection)
 
size_t woff2::FontFileSize (const Font &font)
 
size_t woff2::FontCollectionFileSize (const FontCollection &font_collection)
 
bool woff2::WriteFont (const Font &font, uint8_t *dst, size_t dst_size)
 
bool woff2::WriteTableRecord (const Font::Table *table, size_t *offset, uint8_t *dst, size_t dst_size)
 
bool woff2::WriteTable (const Font::Table &table, size_t *offset, uint8_t *dst, size_t dst_size)
 
bool woff2::WriteFont (const Font &font, size_t *offset, uint8_t *dst, size_t dst_size)
 
bool woff2::WriteFontCollection (const FontCollection &font_collection, uint8_t *dst, size_t dst_size)
 
int woff2::NumGlyphs (const Font &font)
 
int woff2::IndexFormat (const Font &font)
 
bool woff2::GetGlyphData (const Font &font, int glyph_index, const uint8_t **glyph_data, size_t *glyph_size)
 
bool woff2::RemoveDigitalSignature (Font *font)