Lines Matching refs:SkTypeface
12 #include "SkTypeface.h"
14 SK_DEFINE_INST_COUNT(SkTypeface)
22 SkTypeface::SkTypeface(Style style, SkFontID fontID, bool isFixedPitch)
25 SkDebugf("SkTypeface: create %p fontID %d total %d\n",
30 SkTypeface::~SkTypeface() {
32 SkDebugf("SkTypeface: destroy %p fontID %d total %d\n",
39 SkTypeface* SkTypeface::GetDefaultTypeface(Style style) {
44 static SkTypeface* gDefaultTypefaces[FONT_STYLE_COUNT];
57 SkTypeface* SkTypeface::RefDefault(Style style) {
61 uint32_t SkTypeface::UniqueID(const SkTypeface* face) {
68 bool SkTypeface::Equal(const SkTypeface* facea, const SkTypeface* faceb) {
69 return SkTypeface::UniqueID(facea) == SkTypeface::UniqueID(faceb);
74 SkTypeface* SkTypeface::CreateFromName(const char name[], Style style) {
81 SkTypeface* SkTypeface::CreateFromTypeface(const SkTypeface* family, Style s) {
84 return const_cast<SkTypeface*>(family);
89 SkTypeface* SkTypeface::CreateFromStream(SkStream* stream) {
93 SkTypeface* SkTypeface::CreateFromFile(const char path[]) {
99 void SkTypeface::serialize(SkWStream* wstream) const {
120 SkTypeface* SkTypeface::Deserialize(SkStream* stream) {
130 return SkTypeface::CreateFromStream(localStream.get());
143 return SkTypeface::CreateFromName(desc.getFamilyName(), desc.getStyle());
148 int SkTypeface::countTables() const {
152 int SkTypeface::getTableTags(SkFontTableTag tags[]) const {
156 size_t SkTypeface::getTableSize(SkFontTableTag tag) const {
160 size_t SkTypeface::getTableData(SkFontTableTag tag, size_t offset, size_t length,
165 SkStream* SkTypeface::openStream(int* ttcIndex) const {
174 int SkTypeface::charsToGlyphs(const void* chars, Encoding encoding,
188 int SkTypeface::countGlyphs() const {
192 int SkTypeface::getUnitsPerEm() const {
197 SkTypeface::LocalizedStrings* SkTypeface::createFamilyNameIterator() const {
201 void SkTypeface::getFamilyName(SkString* name) const {
208 SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics(
215 SkTypeface* SkTypeface::refMatchingStyle(Style style) const {
222 int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding,