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

Side by Side Diff: ui/gfx/font_fallback_win.h

Issue 2927953003: Use CTFontCreateForString for RenderTextHarfbuzz on Mac (Closed)
Patch Set: Fix views::Label tests Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/font_fallback_mac_unittest.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_FONT_FALLBACK_WIN_H_ 5 #ifndef UI_GFX_FONT_FALLBACK_WIN_H_
6 #define UI_GFX_FONT_FALLBACK_WIN_H_ 6 #define UI_GFX_FONT_FALLBACK_WIN_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const std::vector<Font>* linked_fonts_; 74 const std::vector<Font>* linked_fonts_;
75 75
76 // Index of the current entry in the |linked_fonts_| list. 76 // Index of the current entry in the |linked_fonts_| list.
77 size_t linked_font_index_; 77 size_t linked_font_index_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(LinkedFontsIterator); 79 DISALLOW_COPY_AND_ASSIGN(LinkedFontsIterator);
80 }; 80 };
81 81
82 } // namespace internal 82 } // namespace internal
83 83
84 // Finds a fallback font to render the specified |text| with respect to an
85 // initial |font|. Returns the resulting font via out param |result|. Returns
86 // |true| if a fallback font was found.
87 bool GFX_EXPORT GetFallbackFont(const Font& font,
88 const wchar_t* text,
89 int text_length,
90 Font* result);
91
92 } // namespace gfx 84 } // namespace gfx
93 85
94 #endif // UI_GFX_FONT_FALLBACK_WIN_H_ 86 #endif // UI_GFX_FONT_FALLBACK_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/font_fallback_mac_unittest.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698