Skip to content

Commit

Permalink
Was escaping characters from 0x80 to 0x9f, but these are used by the
Browse files Browse the repository at this point in the history
PostScript and Windows ISOLatin1 encodings (and the X11 fonts which use
them...)  Commented the code out for now...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Jun 16, 1999
1 parent fbc03d2 commit 971dc65
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/fl_draw.cxx
@@ -1,5 +1,5 @@
//
// "$Id: fl_draw.cxx,v 1.6 1999/01/07 19:17:38 mike Exp $"
// "$Id: fl_draw.cxx,v 1.6.2.1 1999/06/16 15:14:42 mike Exp $"
//
// Label drawing code for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -90,11 +90,18 @@ expand(const char* from, char* buf, double maxw, int& n, double &width, int wrap
*o++ = '^';
*o++ = c ^ 0x40;

/*
* mike@easysw.com - The following escaping code causes problems when
* using the PostScript ISOLatin1 and WinANSI encodings, because these
* map to I18N characters...
*/
#if 0
} else if (c >= 128 && c < 0xA0) { // \nnn
*o++ = '\\';
*o++ = (c>>6)+'0';
*o++ = ((c>>3)&7)+'0';
*o++ = (c&7)+'0';
#endif /* 0 */

} else if (c == 0xA0) { // non-breaking space
*o++ = ' ';
Expand Down Expand Up @@ -193,5 +200,5 @@ void fl_measure(const char* str, int& w, int& h) {
}

//
// End of "$Id: fl_draw.cxx,v 1.6 1999/01/07 19:17:38 mike Exp $".
// End of "$Id: fl_draw.cxx,v 1.6.2.1 1999/06/16 15:14:42 mike Exp $".
//

0 comments on commit 971dc65

Please sign in to comment.