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 /test | |
| 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 'test')
| -rw-r--r-- | test/fonts.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/fonts.cxx b/test/fonts.cxx index 4443f90f6..951460196 100644 --- a/test/fonts.cxx +++ b/test/fonts.cxx @@ -1,5 +1,5 @@ // -// "$Id: fonts.cxx,v 1.5.2.3.2.4 2004/04/11 04:39:01 easysw Exp $" +// "$Id: fonts.cxx,v 1.5.2.3.2.5 2004/09/09 00:55:41 matthiaswm Exp $" // // Font demo program for the Fast Light Tool Kit (FLTK). // @@ -133,7 +133,11 @@ void create_the_forms() { int main(int argc, char **argv) { Fl::scheme(NULL); create_the_forms(); +#ifdef __APPLE__ + int i = 0; +#else int i = fl_choice("Which fonts:","-*","iso8859","All"); +#endif int k = Fl::set_fonts(i ? (i>1 ? "*" : 0) : "-*"); for (i = 0; i < k; i++) { int t; const char *name = Fl::get_font_name((Fl_Font)i,&t); @@ -165,5 +169,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: fonts.cxx,v 1.5.2.3.2.4 2004/04/11 04:39:01 easysw Exp $". +// End of "$Id: fonts.cxx,v 1.5.2.3.2.5 2004/09/09 00:55:41 matthiaswm Exp $". // |
