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

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

Issue 789583002: Updates subpixel positioning and hinting when DSF is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: linux fix Created 6 years 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_pango.cc ('k') | ui/gfx/platform_font_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_PLATFORM_FONT_WIN_H_ 5 #ifndef UI_GFX_PLATFORM_FONT_WIN_H_
6 #define UI_GFX_PLATFORM_FONT_WIN_H_ 6 #define UI_GFX_PLATFORM_FONT_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Overridden from PlatformFont: 59 // Overridden from PlatformFont:
60 virtual Font DeriveFont(int size_delta, int style) const override; 60 virtual Font DeriveFont(int size_delta, int style) const override;
61 virtual int GetHeight() const override; 61 virtual int GetHeight() const override;
62 virtual int GetBaseline() const override; 62 virtual int GetBaseline() const override;
63 virtual int GetCapHeight() const override; 63 virtual int GetCapHeight() const override;
64 virtual int GetExpectedTextWidth(int length) const override; 64 virtual int GetExpectedTextWidth(int length) const override;
65 virtual int GetStyle() const override; 65 virtual int GetStyle() const override;
66 virtual std::string GetFontName() const override; 66 virtual std::string GetFontName() const override;
67 virtual std::string GetActualFontNameForTesting() const override; 67 virtual std::string GetActualFontNameForTesting() const override;
68 virtual int GetFontSize() const override; 68 virtual int GetFontSize() const override;
69 virtual const FontRenderParams& GetFontRenderParams() const override; 69 virtual const FontRenderParams& GetFontRenderParams() override;
70 virtual NativeFont GetNativeFont() const override; 70 virtual NativeFont GetNativeFont() const override;
71 71
72 // Called once during initialization if we should be retrieving font metrics 72 // Called once during initialization if we should be retrieving font metrics
73 // from skia and DirectWrite. 73 // from skia and DirectWrite.
74 static void SetDirectWriteFactory(IDWriteFactory* factory); 74 static void SetDirectWriteFactory(IDWriteFactory* factory);
75 75
76 private: 76 private:
77 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback); 77 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback);
78 78
79 virtual ~PlatformFontWin() {} 79 virtual ~PlatformFontWin() {}
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Pointer to the global IDWriteFactory interface. 184 // Pointer to the global IDWriteFactory interface.
185 static IDWriteFactory* direct_write_factory_; 185 static IDWriteFactory* direct_write_factory_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(PlatformFontWin); 187 DISALLOW_COPY_AND_ASSIGN(PlatformFontWin);
188 }; 188 };
189 189
190 } // namespace gfx 190 } // namespace gfx
191 191
192 #endif // UI_GFX_PLATFORM_FONT_WIN_H_ 192 #endif // UI_GFX_PLATFORM_FONT_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/platform_font_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698