Searched refs:ttcIndex (Results 1 - 25 of 63) sorted by relevance

123

/external/chromium_org/third_party/skia/src/core/
H A DSkFontStream.h28 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
36 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { argument
45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, NULL);
H A DSkFontStream.cpp54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { argument
55 SkASSERT(ttcIndex >= 0);
71 if ((unsigned)ttcIndex >= count) {
75 if (ttcIndex > 0) { // need to read more of the shared header
77 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t);
84 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]);
113 bool init(SkStream* stream, int ttcIndex) { argument
117 fCount = count_tables(stream, ttcIndex, &offsetToDir);
155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, argument
158 if (!header.init(stream, ttcIndex)) {
170 GetTableData(SkStream* stream, int ttcIndex, SkFontTableTag tag, size_t offset, size_t length, void* data) argument
[all...]
H A DSkTypeface.cpp48 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE { return NULL; }
173 int ttcIndex; local
174 desc.setFontData(this->onOpenStream(&ttcIndex));
175 desc.setFontIndex(ttcIndex);
212 SkStream* SkTypeface::openStream(int* ttcIndex) const {
214 if (NULL == ttcIndex) {
216 ttcIndex = &ttcIndexStorage;
218 return this->onOpenStream(ttcIndex);
H A DSkFontHost.cpp191 SkTypeface* SkFontMgr::createFromData(SkData* data, int ttcIndex) const {
195 return this->onCreateFromData(data, ttcIndex);
198 SkTypeface* SkFontMgr::createFromStream(SkStream* stream, int ttcIndex) const {
202 return this->onCreateFromStream(stream, ttcIndex);
205 SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) const {
209 return this->onCreateFromFile(path, ttcIndex);
/external/skia/src/core/
H A DSkFontStream.h28 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
36 * @param ttcIndex 0 for normal sfnts, or the index within a TTC sfnt.
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { argument
45 return GetTableData(stream, ttcIndex, tag, 0, ~0U, NULL);
H A DSkFontStream.cpp54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { argument
55 SkASSERT(ttcIndex >= 0);
71 if ((unsigned)ttcIndex >= count) {
75 if (ttcIndex > 0) { // need to read more of the shared header
77 size_t amount = sizeof(SkSharedTTHeader) + ttcIndex * sizeof(uint32_t);
84 offset = SkEndian_SwapBE32((&header->fCollection.fOffset0)[ttcIndex]);
113 bool init(SkStream* stream, int ttcIndex) { argument
117 fCount = count_tables(stream, ttcIndex, &offsetToDir);
155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, argument
158 if (!header.init(stream, ttcIndex)) {
170 GetTableData(SkStream* stream, int ttcIndex, SkFontTableTag tag, size_t offset, size_t length, void* data) argument
[all...]
H A DSkTypeface.cpp48 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE { return NULL; }
154 int ttcIndex; // TODO: write this to the stream? local
155 SkAutoTUnref<SkStream> rstream(this->openStream(&ttcIndex));
213 SkStream* SkTypeface::openStream(int* ttcIndex) const {
215 if (NULL == ttcIndex) {
217 ttcIndex = &ttcIndexStorage;
219 return this->onOpenStream(ttcIndex);
H A DSkFontHost.cpp175 SkTypeface* SkFontMgr::createFromData(SkData* data, int ttcIndex) const {
179 return this->onCreateFromData(data, ttcIndex);
182 SkTypeface* SkFontMgr::createFromStream(SkStream* stream, int ttcIndex) const {
186 return this->onCreateFromStream(stream, ttcIndex);
189 SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) const {
193 return this->onCreateFromFile(path, ttcIndex);
/external/chromium_org/third_party/WebKit/public/platform/linux/
H A DWebFallbackFont.h44 , ttcIndex(0)
50 int ttcIndex; member in struct:blink::WebFallbackFont
/external/skia/include/ports/
H A DSkFontMgr.h83 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const;
90 SkTypeface* createFromStream(SkStream*, int ttcIndex = 0) const;
98 SkTypeface* createFromFile(const char path[], int ttcIndex = 0) const;
126 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0;
127 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0;
128 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0;
H A DSkFontMgr_indirect.h50 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE;
51 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE;
52 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE;
88 * This cache is essentially { dataId: { ttcIndex: typeface } }
/external/chromium_org/third_party/WebKit/Source/platform/fonts/linux/
H A DFontCacheLinux.cpp47 fallbackFont->ttcIndex = webFallbackFont.ttcIndex;
/external/chromium_org/third_party/skia/include/ports/
H A DSkFontMgr.h93 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const;
100 SkTypeface* createFromStream(SkStream*, int ttcIndex = 0) const;
108 SkTypeface* createFromFile(const char path[], int ttcIndex = 0) const;
142 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0;
143 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0;
144 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0;
H A DSkFontMgr_indirect.h58 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE;
59 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE;
60 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE;
96 * This cache is essentially { dataId: { ttcIndex: typeface } }
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
H A DFontFaceCreationParams.h71 FontFaceCreationParams(CString filename, int fontconfigInterfaceId, int ttcIndex = 0)
72 : m_creationType(CreateFontByFciIdAndTtcIndex), m_filename(filename), m_fontconfigInterfaceId(fontconfigInterfaceId), m_ttcIndex(ttcIndex)
92 int ttcIndex() const function in class:blink::FontFaceCreationParams
/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_linux.cpp85 SkStream* stream, int ttcIndex)
86 : INHERITED(style, isFixedPitch, sysFont, familyName, ttcIndex)
93 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
94 *ttcIndex = this->getIndex();
122 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
123 *ttcIndex = this->getIndex();
264 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE {
266 return this->createFromStream(stream, ttcIndex);
269 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE {
278 if (SkTypeface_FreeType::ScanFont(stream, ttcIndex,
84 SkTypeface_Stream(Style style, bool isFixedPitch, bool sysFont, const SkString familyName, SkStream* stream, int ttcIndex) argument
[all...]
H A DSkFontMgr_android.cpp87 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
88 *ttcIndex = fIndex;
118 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
119 *ttcIndex = fIndex;
159 const int ttcIndex = fontFile.fIndex; local
163 if (!SkTypeface_FreeType::ScanFont(stream.get(), ttcIndex,
183 (pathName, ttcIndex,
424 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE {
426 return this->createFromStream(stream, ttcIndex);
429 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) cons
[all...]
H A DSkFontHost_fontconfig.cpp125 SkStream* FontConfigTypeface::onOpenStream(int* ttcIndex) const {
129 *ttcIndex = 0;
160 *ttcIndex = this->getIdentity().fTTCIndex;
/external/skia/src/fonts/
H A DSkFontMgr_indirect.cpp263 SkTypeface* SkFontMgr_Indirect::onCreateFromStream(SkStream* stream, int ttcIndex) const {
264 return fImpl->createFromStream(stream, ttcIndex);
267 SkTypeface* SkFontMgr_Indirect::onCreateFromFile(const char path[], int ttcIndex) const {
268 return fImpl->createFromFile(path, ttcIndex);
271 SkTypeface* SkFontMgr_Indirect::onCreateFromData(SkData* data, int ttcIndex) const {
272 return fImpl->createFromData(data, ttcIndex);
/external/skia/src/ports/
H A DSkFontHost_linux.cpp87 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
88 *ttcIndex = 0;
116 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE {
117 *ttcIndex = 0;
258 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE {
260 return this->createFromStream(stream, ttcIndex);
263 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE {
279 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE {
281 return stream.get() ? this->createFromStream(stream, ttcIndex) : NULL;
H A DSkFontHost_fontconfig.cpp168 SkStream* FontConfigTypeface::onOpenStream(int* ttcIndex) const {
172 *ttcIndex = 0;
203 *ttcIndex = this->getIdentity().fTTCIndex;
/external/chromium_org/third_party/WebKit/Source/platform/exported/linux/
H A DWebFontInfo.cpp60 m_fallbackFont.ttcIndex = fontTtcIndex(pattern);
93 int ttcIndex = -1; local
94 if (FcPatternGetInteger(pattern, FC_INDEX, 0, &ttcIndex) != FcResultMatch || ttcIndex < 0)
96 return ttcIndex;
/external/chromium_org/third_party/skia/src/fonts/
H A DSkFontMgr_indirect.cpp275 SkTypeface* SkFontMgr_Indirect::onCreateFromStream(SkStream* stream, int ttcIndex) const {
276 return fImpl->createFromStream(stream, ttcIndex);
279 SkTypeface* SkFontMgr_Indirect::onCreateFromFile(const char path[], int ttcIndex) const {
280 return fImpl->createFromFile(path, ttcIndex);
283 SkTypeface* SkFontMgr_Indirect::onCreateFromData(SkData* data, int ttcIndex) const {
284 return fImpl->createFromData(data, ttcIndex);
/external/chromium_org/third_party/skia/tests/
H A DFontHostStreamTest.cpp99 int ttcIndex; local
100 SkAutoTUnref<SkStream> fontData(origTypeface->openStream(&ttcIndex));
/external/skia/tests/
H A DFontHostStreamTest.cpp98 int ttcIndex; local
99 SkAutoTUnref<SkStream> fontData(origTypeface->openStream(&ttcIndex));

Completed in 477 milliseconds

123