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

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

Issue 971673002: Mac: Implement GetFallbackFontFamilies for Harfbuzz (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150129-MacViews-Bringup5-RTHB-in-Label
Patch Set: Move to font_fallback_mac_unittest Created 5 years, 9 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/gfx_tests.gyp ('k') | ui/gfx/render_text_unittest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDER_TEXT_HARFBUZZ_H_ 5 #ifndef UI_GFX_RENDER_TEXT_HARFBUZZ_H_
6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "third_party/harfbuzz-ng/src/hb.h" 10 #include "third_party/harfbuzz-ng/src/hb.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_RunDirection); 168 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_RunDirection);
169 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_HorizontalPositions); 169 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_HorizontalPositions);
170 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, 170 FRIEND_TEST_ALL_PREFIXES(RenderTextTest,
171 HarfBuzz_TextPositionWithFractionalSize); 171 HarfBuzz_TextPositionWithFractionalSize);
172 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByUnicodeBlocks); 172 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByUnicodeBlocks);
173 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByEmoji); 173 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_BreakRunsByEmoji);
174 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_SubglyphGraphemeCases); 174 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_SubglyphGraphemeCases);
175 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_SubglyphGraphemePartition); 175 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_SubglyphGraphemePartition);
176 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_NonExistentFont); 176 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_NonExistentFont);
177 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback); 177 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback);
178 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UnicodeFallback);
178 179
179 // Specify the width of a glyph for test. The width of glyphs is very 180 // Specify the width of a glyph for test. The width of glyphs is very
180 // platform-dependent and environment-dependent. Otherwise multiline test 181 // platform-dependent and environment-dependent. Otherwise multiline test
181 // will become really flaky. 182 // will become really flaky.
182 void set_glyph_width_for_test(float test_width) { 183 void set_glyph_width_for_test(float test_width) {
183 glyph_width_for_test_ = test_width; 184 glyph_width_for_test_ = test_width;
184 } 185 }
185 186
186 // The actual implementation of the text drawing. 187 // The actual implementation of the text drawing.
187 void DrawVisualTextInternal(internal::SkiaTextRenderer* renderer); 188 void DrawVisualTextInternal(internal::SkiaTextRenderer* renderer);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 266
266 // Fixed width of glyphs. This should only be set in test environments. 267 // Fixed width of glyphs. This should only be set in test environments.
267 float glyph_width_for_test_; 268 float glyph_width_for_test_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); 270 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz);
270 }; 271 };
271 272
272 } // namespace gfx 273 } // namespace gfx
273 274
274 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ 275 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx_tests.gyp ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698