summaryrefslogtreecommitdiffstats
path: root/chrome/common/font_descriptor_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/font_descriptor_mac.mm')
-rw-r--r--chrome/common/font_descriptor_mac.mm20
1 files changed, 0 insertions, 20 deletions
diff --git a/chrome/common/font_descriptor_mac.mm b/chrome/common/font_descriptor_mac.mm
deleted file mode 100644
index 485c215..0000000
--- a/chrome/common/font_descriptor_mac.mm
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/font_descriptor_mac.h"
-
-#include <Cocoa/Cocoa.h>
-
-#include "base/sys_string_conversions.h"
-
-FontDescriptor::FontDescriptor(NSFont* font) {
- font_name = base::SysNSStringToUTF16([font fontName]);
- font_point_size = [font pointSize];
-}
-
-NSFont* FontDescriptor::nsFont() const {
- NSString* font_name_ns = base::SysUTF16ToNSString(font_name);
- NSFont* font = [NSFont fontWithName:font_name_ns size:font_point_size];
- return font;
-}