Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1910)

Unified Diff: ui/gfx/render_text_harfbuzz.h

Issue 331713003: RenderTextHarfBuzz: Implement font fallback for Win and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp -> gn Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/render_text_harfbuzz.h
diff --git a/ui/gfx/render_text_harfbuzz.h b/ui/gfx/render_text_harfbuzz.h
index 59ce92f21c31398eace9628103e883f332ace9f1..f19f04f05290ae892c237c2dcf36fcbd14a85f5d 100644
--- a/ui/gfx/render_text_harfbuzz.h
+++ b/ui/gfx/render_text_harfbuzz.h
@@ -29,8 +29,8 @@ struct GFX_EXPORT TextRunHarfBuzz {
// value is in run-space (0 corresponds to the first glyph in the run).
Range CharRangeToGlyphRange(const Range& range) const;
- // Returns whether the given shaped run contains any missing glyphs.
- bool HasMissingGlyphs() const;
+ // Returns the number of missing glyphs in the shaped text run.
+ size_t CountMissingGlyphs() const;
// Returns the X coordinate of the leading or |trailing| edge of the glyph
// starting at |text_index|, relative to the left of the text (not the view).
@@ -112,6 +112,8 @@ class GFX_EXPORT RenderTextHarfBuzz : public RenderText {
// Shape the glyphs needed for the text |run|.
void ShapeRun(internal::TextRunHarfBuzz* run);
+ void ShapeRunWithFont(internal::TextRunHarfBuzz* run,
+ const std::string& font);
// Text runs in logical order.
ScopedVector<internal::TextRunHarfBuzz> runs_;
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | ui/gfx/render_text_harfbuzz.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698