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

Side by Side Diff: ui/gfx/platform_font_linux.cc

Issue 2863693002: Fallback Font Cache and Character Hinting for VRShell (Closed)
Patch Set: SkTypeface complete type Created 3 years, 7 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/platform_font_linux.h ('k') | no next file » | 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 #include "ui/gfx/platform_font_linux.h" 5 #include "ui/gfx/platform_font_linux.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "third_party/skia/include/core/SkFontStyle.h" 16 #include "third_party/skia/include/core/SkFontStyle.h"
17 #include "third_party/skia/include/core/SkPaint.h" 17 #include "third_party/skia/include/core/SkPaint.h"
18 #include "third_party/skia/include/core/SkString.h" 18 #include "third_party/skia/include/core/SkString.h"
19 #include "third_party/skia/include/core/SkTypeface.h"
20 #include "ui/gfx/canvas.h" 19 #include "ui/gfx/canvas.h"
21 #include "ui/gfx/font.h" 20 #include "ui/gfx/font.h"
22 #include "ui/gfx/font_list.h" 21 #include "ui/gfx/font_list.h"
23 #include "ui/gfx/linux_font_delegate.h" 22 #include "ui/gfx/linux_font_delegate.h"
24 #include "ui/gfx/text_utils.h" 23 #include "ui/gfx/text_utils.h"
25 24
26 namespace gfx { 25 namespace gfx {
27 namespace { 26 namespace {
28 27
29 // The font family name which is used when a user's application font for 28 // The font family name which is used when a user's application font for
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return new PlatformFontLinux; 307 return new PlatformFontLinux;
309 } 308 }
310 309
311 // static 310 // static
312 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name, 311 PlatformFont* PlatformFont::CreateFromNameAndSize(const std::string& font_name,
313 int font_size) { 312 int font_size) {
314 return new PlatformFontLinux(font_name, font_size); 313 return new PlatformFontLinux(font_name, font_size);
315 } 314 }
316 315
317 } // namespace gfx 316 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/platform_font_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698