HomeSort by relevance Sort by last modified time
    Searched full:fontdata (Results 26 - 50 of 112) sorted by null

12 3 4 5

  /external/chromium_org/third_party/WebKit/Source/platform/fonts/
FontFallbackList.h 100 PassRefPtr<FontData> getFontData(const FontDescription&, int& familyIndex) const;
102 const FontData* primaryFontData(const FontDescription&) const;
103 const FontData* fontDataAt(const FontDescription&, unsigned index) const;
109 mutable Vector<RefPtr<FontData>, 1> m_fontList;
SegmentedFontData.cpp 45 return it->fontData().get();
47 return m_ranges[0].fontData().get();
81 if (it->fontData()->isLoading())
92 if (!it->fontData()->isLoadingFallback())
FontSelector.h 35 class FontData;
42 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString& familyName) = 0;
Font.h 49 class FontData;
145 const FontData* fontDataAt(unsigned) const;
307 inline const FontData* Font::fontDataAt(unsigned index) const
324 inline float Font::tabWidth(const SimpleFontData& fontData, unsigned tabSize, float position) const
328 float tabWidth = tabSize * fontData.spaceWidth() + letterSpacing();
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
OpenTypeUtilities.cpp 145 // adds fontName to the font table in fontData, and writes the new font table to rewrittenFontTable
147 static size_t renameFont(SharedBuffer* fontData, const String& fontName, Vector<char> &rewrittenFontData)
149 size_t originalDataSize = fontData->size();
150 const sfntHeader* sfnt = reinterpret_cast<const sfntHeader*>(fontData->data());
165 rewrittenFontData.resize(fontData->size() + nameTableSize);
167 memcpy(data, fontData->data(), originalDataSize);
206 HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName)
209 size_t nameTableSize = renameFont(fontData, fontName, rewrittenFontData);
214 HANDLE fontHandle = AddFontMemResourceEx(rewrittenFontData.data(), fontData->size() + nameTableSize, 0, &numFonts);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
GlyphPageTreeNodeWin.cpp 84 const SimpleFontData* fontData)
87 HGDIOBJ oldFont = SelectObject(dc, fontData->platformData().hfont());
91 if (FontPlatformData::ensureFontLoaded(fontData->platformData().hfont())) {
142 if (!getGlyphIndices(fontData->platformData().hfont(), dc, buffer, length, localGlyphBuffer, GGI_MARK_NONEXISTING_GLYPHS)) {
161 const SimpleFontData* glyphFontData = fontData;
170 initSpaceGlyph(fontData->platformData().hfont(), dc, &spaceGlyph);
177 // WebKit expects both the glyph index and FontData
210 const SimpleFontData* fontData)
215 fontData->platformData().hfont(),
216 fontData->platformData().scriptCache()
    [all...]
UniscribeHelperTextRun.cpp 119 const FontData *fontData = m_font->fontDataAt(m_fontIndex);
120 if (!fontData) {
129 fontData->fontDataForCharacter(' ');
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextLayoutEngineSpacing.cpp 45 const SimpleFontData* fontData = m_font.primaryFont();
46 if (!fontData->isSVGFont()) {
51 ASSERT(fontData->isCustomFont());
52 ASSERT(fontData->isSVGFont());
54 RefPtr<CustomFontData> customFontData = fontData->customFontData();
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
FontComplexTextMac.cpp 170 return baseCharacterGlyphData.fontData;
175 for (const FontData* fontData = fontDataAt(0); fontData; fontData = fontDataAt(++i)) {
176 const SimpleFontData* simpleFontData = fontData->fontDataForCharacter(baseCharacter);
199 if (simpleFontData == baseCharacterGlyphData.fontData)
206 if (!triedBaseCharacterFontData && baseCharacterGlyphData.fontData && baseCharacterGlyphData.fontData->canRenderCombiningCharacterSequence(characters, length))
207 return baseCharacterGlyphData.fontData;
    [all...]
ComplexTextController.cpp 295 // We break up glyph run generation for the string by FontData.
312 const SimpleFontData* fontData;
340 fontData = nextFontData;
359 nextFontData = fontData;
366 if (nextFontData != fontData || nextIsMissingGlyph != isMissingGlyph) {
369 collectComplexTextRunsForCharacters((isSmallCaps ? m_smallCapsBuffer.data() : cp) + itemStart, itemLength, itemStart, !isMissingGlyph ? fontData : 0);
511 if (fallbackFonts && complexTextRun.fontData() != m_font.primaryFont())
512 fallbackFonts->add(complexTextRun.fontData());
531 glyphBuffer->add(m_adjustedGlyphs[k], complexTextRun.fontData(), adjustedAdvance);
577 const SimpleFontData* fontData = complexTextRun.fontData()
    [all...]
ComplexTextController.h 77 static PassRefPtr<ComplexTextRun> create(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange)
79 return adoptRef(new ComplexTextRun(ctRun, fontData, characters, stringLocation, stringLength, runRange));
82 static PassRefPtr<ComplexTextRun> create(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr)
84 return adoptRef(new ComplexTextRun(fontData, characters, stringLocation, stringLength, ltr));
88 const SimpleFontData* fontData() const { return m_fontData; }
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
HarfBuzzFaceCoreText.cpp 48 static hb_bool_t getGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData)
50 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont();
61 static hb_position_t getGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData)
63 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont();
69 static hb_bool_t getGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData)
74 static hb_bool_t getGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData)
76 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont();
HarfBuzzFaceSkia.cpp 87 static hb_bool_t harfBuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData)
89 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
104 static hb_position_t harfBuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData)
106 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
113 static hb_bool_t harfBuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData)
120 static hb_bool_t harfBuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData)
122 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
HarfBuzzShaper.h 71 static PassOwnPtr<HarfBuzzRun> create(const SimpleFontData* fontData, unsigned startIndex, unsigned numCharacters, TextDirection direction, hb_script_t script)
73 return adoptPtr(new HarfBuzzRun(fontData, startIndex, numCharacters, direction, script));
84 const SimpleFontData* fontData() { return m_fontData; }
HarfBuzzShaper.cpp 100 CachedShapingResults::CachedShapingResults(hb_buffer_t* harfBuzzBuffer, const Font* fontData, hb_direction_t dirData)
102 , font(*fontData)
210 inline HarfBuzzShaper::HarfBuzzRun::HarfBuzzRun(const SimpleFontData* fontData, unsigned startIndex, unsigned numCharacters, TextDirection direction, hb_script_t script)
211 : m_fontData(fontData)
574 const SimpleFontData* nextFontData = m_font->glyphDataForCharacter(character, false).fontData;
608 nextFontData = m_font->glyphDataForCharacter(character, false).fontData;
647 const SimpleFontData* currentFontData = currentRun->fontData();
692 currentFontData = m_font->glyphDataForCharacter(upperText[0], false, SmallCapsVariant).fontData;
719 const SimpleFontData* currentFontData = currentRun->fontData();
786 glyphBuffer->add(glyphs[i], currentRun->fontData(), createGlyphBufferAdvance(glyphAdvanceX, glyphAdvanceY))
    [all...]
  /frameworks/base/core/jni/android/graphics/
HarfBuzzNGFaceSkia.cpp 79 static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData)
81 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
97 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData)
99 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
106 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData)
113 static hb_bool_t harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData)
115 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
GlyphPageTreeNodeSkia.cpp 43 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
53 SkTypeface* typeface = fontData->platformData().typeface();
58 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL);
  /external/chromium_org/third_party/skia/src/sfnt/
SkOTUtils.cpp 36 SkData* SkOTUtils::RenameFont(SkStream* fontData, const char* fontName, int fontNameLen) {
40 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) {
49 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) {
60 if (!fontData->rewind()) {
83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize;
89 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) {
92 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) {
95 if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDataSize - oldNameTableOffset) {
  /external/skia/src/sfnt/
SkOTUtils.cpp 36 SkData* SkOTUtils::RenameFont(SkStream* fontData, const char* fontName, int fontNameLen) {
40 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) {
49 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) {
60 if (!fontData->rewind()) {
83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize;
89 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) {
92 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) {
95 if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDataSize - oldNameTableOffset) {
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSSegmentedFontFace.h 40 class FontData;
59 PassRefPtr<FontData> getFontData(const FontDescription&);
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/
DrawUtils.java 18 import org.eclipse.swt.graphics.FontData;
372 FontData[] boldData = getModifiedFontData(baseFont, SWT.BOLD);
380 FontData[] boldData = getModifiedFontData(baseFont, SWT.BOLD | SWT.ITALIC);
388 FontData[] boldData = getModifiedFontData(baseFont, SWT.ITALIC);
393 * @return the array of {@link FontData} with the specified style.
395 private static FontData[] getModifiedFontData(Font baseFont, int style) {
396 FontData[] baseData = baseFont.getFontData();
397 FontData[] styleData = new FontData[baseData.length];
399 FontData base = baseData[i]
    [all...]
  /external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/
readable_font_data.cc 28 : FontData(array),
257 CALLER_ATTACH FontData* ReadableFontData::Slice(int32_t offset,
270 CALLER_ATTACH FontData* ReadableFontData::Slice(int32_t offset) {
283 : FontData(data, offset),
291 : FontData(data, offset, length),
  /external/sfntly/cpp/src/sfntly/data/
readable_font_data.cc 28 : FontData(array),
257 CALLER_ATTACH FontData* ReadableFontData::Slice(int32_t offset,
270 CALLER_ATTACH FontData* ReadableFontData::Slice(int32_t offset) {
283 : FontData(data, offset),
291 : FontData(data, offset, length),
  /external/skia/tests/
FontHostStreamTest.cpp 101 SkAutoTUnref<SkStream> fontData(origTypeface->openStream(&ttcIndex));
102 SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData);
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/
ComponentsView.java 41 import org.eclipse.swt.graphics.FontData;
272 FontData[] fontData = (font==null ? JFaceResources.getDefaultFont() : font).getFontData();
273 FontData boldFontData = new FontData(fontData[0].getName(), fontData[0].getHeight(), SWT.BOLD);

Completed in 909 milliseconds

12 3 4 5