phoenix/cocoa/font.hpp
raw| 1 | namespace phoenix { |
| 2 | |
| 3 | struct pFont { |
| 4 | static string serif(unsigned size, string style); |
| 5 | static string sans(unsigned size, string style); |
| 6 | static string monospace(unsigned size, string style); |
| 7 | static Size size(string font, string text); |
| 8 | |
| 9 | static NSFont* cocoaFont(string description); |
| 10 | static Size size(NSFont* font, string text); |
| 11 | }; |
| 12 | |
| 13 | } |