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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_
6 #define CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_
8 #include "base/strings/string16.h"
9 #include "content/common/content_export.h"
17 // Container to allow serializing an NSFont over IPC.
18 struct CONTENT_EXPORT FontDescriptor
{
19 explicit FontDescriptor(NSFont
* font
);
20 FontDescriptor(base::string16 name
, float size
);
22 FontDescriptor() : font_point_size(0) {}
24 // Return an autoreleased NSFont corresponding to the font description.
25 NSFont
* ToNSFont() const;
28 base::string16 font_name
;
31 float font_point_size
;
34 #endif // CONTENT_COMMON_MAC_FONT_DESCRIPTOR_H_