Home | History | Annotate | Download | only in gfx

Lines Matching defs:PlatformFontWin

36   if (gfx::PlatformFontWin::get_minimum_font_size_callback)
37 min_font_size = gfx::PlatformFontWin::get_minimum_font_size_callback();
76 PlatformFontWin::HFontRef* PlatformFontWin::base_font_ref_;
79 PlatformFontWin::AdjustFontCallback
80 PlatformFontWin::adjust_font_callback = NULL;
81 PlatformFontWin::GetMinimumFontSizeCallback
82 PlatformFontWin::get_minimum_font_size_callback = NULL;
85 // PlatformFontWin, public
87 PlatformFontWin::PlatformFontWin() : font_ref_(GetBaseFontRef()) {
90 PlatformFontWin::PlatformFontWin(NativeFont native_font) {
94 PlatformFontWin::PlatformFontWin(const std::string& font_name,
99 Font PlatformFontWin::DeriveFontWithHeight(int height, int style) {
131 // PlatformFontWin, PlatformFont implementation:
133 Font PlatformFontWin::DeriveFont(int size_delta, int style) const {
141 return Font(new PlatformFontWin(CreateHFontRef(hfont)));
144 int PlatformFontWin::GetHeight() const {
148 int PlatformFontWin::GetBaseline() const {
152 int PlatformFontWin::GetCapHeight() const {
156 int PlatformFontWin::GetExpectedTextWidth(int length) const {
161 int PlatformFontWin::GetStyle() const {
165 std::string PlatformFontWin::GetFontName() const {
169 std::string PlatformFontWin::GetActualFontNameForTesting() const {
176 std::string PlatformFontWin::GetLocalizedFontName() const {
192 int PlatformFontWin::GetFontSize() const {
196 const FontRenderParams& PlatformFontWin::GetFontRenderParams() const {
202 NativeFont PlatformFontWin::GetNativeFont() const {
209 void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) {
216 void PlatformFontWin::InitWithFontNameAndSize(const std::string& font_name,
229 PlatformFontWin::HFontRef* PlatformFontWin::GetBaseFontRef() {
240 base_font_ref_ = PlatformFontWin::CreateHFontRef(font);
247 PlatformFontWin::HFontRef* PlatformFontWin::CreateHFontRef(HFONT font) {
259 PlatformFontWin::HFontRef* PlatformFontWin::CreateHFontRef(
281 Font PlatformFontWin::DeriveWithCorrectedSize(HFONT base_font) {
309 return Font(new PlatformFontWin(CreateHFontRef(best_font.release())));
312 PlatformFontWin::PlatformFontWin(HFontRef* hfont_ref) : font_ref_(hfont_ref) {
316 // PlatformFontWin::HFontRef:
318 PlatformFontWin::HFontRef::HFontRef(HFONT hfont,
343 int PlatformFontWin::HFontRef::GetDluBaseX() {
363 PlatformFontWin::HFontRef::~HFontRef() {
372 return new PlatformFontWin;
377 return new PlatformFontWin(native_font);
383 return new PlatformFontWin(font_name, font_size);