diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2004-09-09 00:55:41 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2004-09-09 00:55:41 +0000 |
| commit | b90f593ae6c6769a1244b5efebbcad3f469027ae (patch) | |
| tree | 993f488ebe42ffcc24f8dd406036c02059e1f396 /FL | |
| parent | 88ff012c446c98bf017a29af883d0d6b0c25c26d (diff) | |
News from FLTK1.1 and Quartz
- listing fonts using ATS instead of QD
- made bold and italic fonts work
- returning correct font metrics
One problem came up though: Quartz renders fonts at subpixel positions,
which is great for the overall look, but unfortunatly 'fl_draw' supports
only integer coordinates for printing. As a result, marking a line of text
makes the rest of the line jump by a fractional pixel. Any suggestions to
solve this problem are greatly appreciated!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/mac.H | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ // -// "$Id: mac.H,v 1.1.2.15 2004/08/31 22:00:44 matthiaswm Exp $" +// "$Id: mac.H,v 1.1.2.16 2004/09/09 00:55:41 matthiaswm Exp $" // // Mac header file for the Fast Light Tool Kit (FLTK). // @@ -79,6 +79,8 @@ public: void flush(); // Quartz additions: CGContextRef gc; // graphics context (NULL when using QD) + static ATSUTextLayout atsu_layout; // windows share a global font + static ATSUStyle atsu_style; static void q_fill_context(); // fill a Quartz context with current FLTK state static void q_clear_clipping(); // remove all clipping from a Quartz context static void q_release_context(Fl_X *x=0); // free all resources associated with fl_gc @@ -126,6 +128,6 @@ extern void fl_open_callback(void (*cb)(const char *)); extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b); // -// End of "$Id: mac.H,v 1.1.2.15 2004/08/31 22:00:44 matthiaswm Exp $". +// End of "$Id: mac.H,v 1.1.2.16 2004/09/09 00:55:41 matthiaswm Exp $". // |
