Home
last modified time | relevance | path

Searched defs:font (Results 676 - 700 of 711) sorted by relevance

1...<<212223242526272829

/third_party/skia/modules/skparagraph/src/
H A DTextLine.cpp628 SkFont font; local
630 RSFont font; local
[all...]
H A DRun.h123 const SkFont& font() const { return fFont; } in font() function in skia::textlayout::Run
125 const RSFont& font() const { return fFont; } in font() function in skia::textlayout::Run
507 InternalLineMetrics(const RSFont& font, boo argument
513 InternalLineMetrics(const SkFont& font, bool forceStrut) InternalLineMetrics() argument
521 InternalLineMetrics(const SkFont& font, bool forceStrut) InternalLineMetrics() argument
[all...]
H A DParagraphImpl.cpp1693 SkASSERT(blockIndex < SkToSizeT(fTextStyles.size())); return fTextStyles[blockIndex]; } void ParagraphImpl::setState(InternalState state) { if (fState <= state) { fState = state; return; } fState = state; switch (fState) { case kUnknown: SkASSERT(false); [[fallthrough]]; case kIndexed: fRuns.reset(); fClusters.reset(); [[fallthrough]]; case kShaped: fLines.reset(); [[fallthrough]]; case kLineBroken: fPicture = nullptr; [[fallthrough]]; default: break; } } void ParagraphImpl::computeEmptyMetrics() { bool emptyParagraph = fRuns.empty(); TextStyle textStyle = paragraphStyle().getTextStyle(); if (emptyParagraph && !fTextStyles.empty()) { textStyle = fTextStyles.back().fStyle; } auto typefaces = fontCollection()->findTypefaces( textStyle.getFontFamilies(), textStyle.getFontStyle(), textStyle.getFontArguments()); auto typeface = typefaces.empty() ? nullptr : typefaces.front(); SkFont font(typeface, textStyle.getFontSize()); fEmptyMetrics = InternalLineMetrics(font, paragraphStyle().getStrutStyle().getForceStrutHeight()); if (!paragraphStyle().getStrutStyle().getForceStrutHeight() && textStyle.getHeightOverride()) { const auto intrinsicHeight = fEmptyMetrics.fDescent - fEmptyMetrics.fAscent + fEmptyMetrics.fLeading; const auto strutHeight = textStyle.getHeight() * textStyle.getFontSize(); if (paragraphStyle().getStrutStyle().getHalfLeading()) { fEmptyMetrics.update( fEmptyMetrics.ascent(), fEmptyMetrics.descent(), fEmptyMetrics.leading() + strutHeight - intrinsicHeight); } else { const auto multiplier = strutHeight / intrinsicHeight; fEmptyMetrics.update( fEmptyMetrics.ascent() * multiplier, fEmptyMetrics.descent() * multiplier, fEmptyMetrics.leading() * multiplier); } } if (emptyParagraph) { auto disableFirstAscent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableFirstAscent) == TextHeightBehavior::kDisableFirstAscent; auto disableLastDescent = (paragraphStyle().getTextHeightBehavior() & TextHeightBehavior::kDisableLastDescent) == TextHeightBehavior::kDisableLastDescent; fEmptyMetrics.update( disableFirstAscent ? fEmptyMetrics.rawAscent() : fEmptyMetrics.ascent(), disableLastDescent ? fEmptyMetrics.rawDescent() : fEmptyMetrics.descent(), fEmptyMetrics.leading()); } if (fParagraphStyle.getStrutStyle().getStrutEnabled()) { fStrutMetrics.updateLineMetrics(fEmptyMetrics); } } SkString ParagraphImpl::getEllipsis() const { auto ellipsis8 = fParagraphStyle.getEllipsis(); auto ellipsis16 = fParagraphStyle.getEllipsisUtf16(); if (!ellipsis8.isEmpty()) { return ellipsis8; } else { return SkUnicode::convertUtf16ToUtf8(fParagraphStyle.getEllipsisUtf16()); } } WordBreakType ParagraphImpl::getWordBreakType() const { return fParagraphStyle.getStrutStyle().getWordBreakType(); } LineBreakStrategy ParagraphImpl::getLineBreakStrategy() const { return fParagraphStyle.getStrutStyle().getLineBreakStrategy(); } void ParagraphImpl::updateFontSize(size_t from, size_t to, SkScalar fontSize) { SkASSERT(from == 0 && to == fText.size()); auto defaultStyle = fParagraphStyle.getTextStyle(); defaultStyle.setFontSize(fontSize); fParagraphStyle.setTextStyle(defaultStyle); for (auto& textStyle : fTextStyles) { textStyle.fStyle.setFontSize(fontSize); } fState = std::min(fState, kIndexed); fOldWidth = 0; fOldHeight = 0; } void ParagraphImpl::updateTextAlign(TextAlign textAlign) { fParagraphStyle.setTextAlign(textAlign); if (fState >= kLineBroken) GetLineFontMetrics() argument
2143 const auto& font = run.font(); GetLineFontMetrics() local
2184 auto& font = const_cast<RSFont&>(run.font()); GetLineFontMetrics() local
[all...]
/third_party/skia/include/core/
H A DSkCanvas.h1733 void drawString(const char str[], SkScalar x, SkScalar y, const SkFont& font, in drawString() argument
1762 drawString(const SkString& str, SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint) drawString() argument
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsLongStressCase.cpp360 static const char font[numCharacters*charWid*charHei + 1]= in addTextToBuffer() local
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_textfield.cpp278 Font font; in SetPlaceholderFont() local
H A Djs_richeditor.cpp1088 Font font; in SetPlaceholder() local
1115 void JSRichEditor::ParseJsFont(const JSRef<JSObject>& fontObject, Font& font) in ParseJsFont() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_object.cpp89 Font font; in Constructor() local
110 Font font; in ParseJsFontSpan() local
119 void JSFontSpan::ParseJsFontColor(const JSRef<JSObject>& obj, Font& font) in ParseJsFontColor() argument
135 ParseJsFontSize(const JSRef<JSObject>& obj, Font& font) ParseJsFontSize() argument
154 ParseJsFontWeight(const JSRef<JSObject>& obj, Font& font) ParseJsFontWeight() argument
176 ParseJsFontFamily(const JSRef<JSObject>& obj, Font& font) ParseJsFontFamily() argument
193 ParseJsFontStyle(const JSRef<JSObject>& obj, Font& font) ParseJsFontStyle() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_text_area_modifier.cpp152 Font font; in SetTextAreaPlaceholderFont() local
195 Font font; SetTextAreaPlaceholderFontEnum() local
241 Font font; ResetTextAreaPlaceholderFont() local
489 GetTextAreaPlaceholderFont(ArkUINodeHandle node, ArkUITextFont* font) GetTextAreaPlaceholderFont() argument
[all...]
H A Dnode_text_input_modifier.cpp579 Font font; in SetTextInputPlaceholderFont() local
613 Font font; in ResetTextInputPlaceholderFont() local
823 GetTextInputPlaceholderFont(ArkUINodeHandle node, ArkUITextFont* font) GetTextInputPlaceholderFont() argument
1237 Font font; SetTextInputPlaceholderFontEnum() local
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp1121 std::shared_ptr<Font> font = jsFont->GetFont(); in OnDrawSingleCharacter() local
/third_party/ffmpeg/libavfilter/
H A Dvf_waveform.c2630 const uint8_t *font; in draw_htext() local
2656 const uint8_t *font; in draw_htext16() local
2682 const uint8_t *font; in draw_vtext() local
2707 const uint8_t *font; in draw_vtext16() local
2774 const uint8_t *font; idraw_htext() local
2800 const uint8_t *font; idraw_htext16() local
2826 const uint8_t *font; idraw_vtext() local
2851 const uint8_t *font; idraw_vtext16() local
[all...]
/third_party/skia/src/xps/
H A DSkXPSDevice.cpp1731 HRESULT SkXPSDevice::CreateTypefaceUse(const SkFont& font, in CreateTypefaceUse() argument
1796 AddGlyphs(IXpsOMObjectFactory* xpsFactory, IXpsOMCanvas* canvas, const TypefaceUse* font, LPCWSTR text, XPS_GLYPH_INDEX* xpsGlyphs, UINT32 xpsGlyphsLen, XPS_POINT *origin, FLOAT fontSize, XPS_STYLE_SIMULATION sims, const SkMatrix& transform, const SkPaint& paint) AddGlyphs() argument
1904 const SkFont& font = run.font(); onDrawGlyphRunList() local
[all...]
/third_party/skia/src/pdf/
H A DSkPDFDevice.cpp757 const SkFont& font = glyphRun.font(); in drawGlyphRunAsPath() local
794 static bool needs_new_font(SkPDFFont* font, const SkGlyph* glyph, in needs_new_font() argument
877 SkPDFFont* font in internalDrawGlyphRun() local
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-layout-gpos-table.hh379 hb_font_t *font = c->font; get_anchor() local
412 hb_font_t *font = c->font; get_anchor() local
457 hb_font_t *font = c->font; get_anchor() local
[all...]
H A Dhb-ot-layout-gsubgpos.hh603 hb_font_t *font; member
/third_party/skia/tools/debugger/
H A DDrawCommand.cpp718 static void apply_font_hinting(const SkFont& font, SkJSONWriter& writer) { in apply_font_hinting() argument
738 static void apply_font_edging(const SkFont& font, SkJSONWriter& writer) { in apply_font_edging() argument
873 static void apply_font_typeface(const SkFont& font, in apply_font_typeface() argument
929 static void MakeJsonFont(const SkFont& font, SkJSONWriter& writer, UrlDataManager& urlDataManager) { in MakeJsonFont() argument
[all...]
/third_party/skia/tools/viewer/
H A DViewer.cpp1319 SkFont font = *filteredFont; in filterTextBlob() local
1285 OveridePaintFilterCanvas(SkCanvas* canvas, SkPaint* paint, Viewer::SkPaintFields* pfields, SkFont* font, Viewer::SkFontFields* ffields) OveridePaintFilterCanvas() argument
[all...]
/third_party/mesa3d/src/imgui/
H A Dimstb_truetype.h337 stbtt_fontinfo font; main() local
1277 stbtt__isfont(stbtt_uint8 *font) stbtt__isfont() argument
[all...]
/third_party/python/Tools/msi/bundle/bootstrap/
H A DPythonBootstrapperApplication.cpp1761 THEME_FONT *font = &_theme->rgFonts[_theme->dwFontId]; in CreateMainWindow() local
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DUtilsVk.cpp3455 drawOverlay(ContextVk *contextVk, vk::BufferHelper *textWidgetsBuffer, vk::BufferHelper *graphWidgetsBuffer, vk::ImageHelper *font, const vk::ImageView *fontView, vk::ImageHelper *culledWidgets, const vk::ImageView *culledWidgetsView, vk::ImageHelper *dst, const vk::ImageView *destView, const OverlayDrawParameters &params) drawOverlay() argument
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
H A DNameTable.java[all...]
H A DOS2Table.java
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/opentype/
H A DLanguageTag.java
/third_party/skia/third_party/externals/imgui/
H A Dimstb_truetype.h337 stbtt_fontinfo font; main() local
1277 stbtt__isfont(stbtt_uint8 *font) stbtt__isfont() argument
[all...]

Completed in 72 milliseconds

1...<<212223242526272829