FLTK logo

STR #867

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]

STR #867

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Example Programs
Summary:fonts demo doesn't actually display the fonts properly...
Version:1.1-current
Created By:ianmacarthur
Assigned To:matt
Fix Version:1.1-current (SVN: v4423)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 ianmacarthur
10:52 May 17, 2005
Looking at the fonts demo, the last glyph it actually displays is always a question mark - "?"

The code looks like it should display lots more, but the next symbol after "?" is "@" of course, which I guess is interpreted as a special symbol, so the rest of the glyphs are never displayed...
 
 
#2 ianmacarthur
03:47 May 18, 2005
OK, I have a patch for this, but the Post File mechansim isn't letting me post it, so I'll try this instead (note: I'm pretty sure that's a bug with the way the firewall here is behaving...!)


--- orig_fonts.cxx Sat Apr 16 01:13:17 2005
+++ fonts.cxx Wed May 18 11:38:08 2005
@@ -110,7 +110,12 @@
   strcpy(label, "Hello, world!\n");
   int i = strlen(label);
   uchar c;
-  for (c = ' '+1; c < 127; c++) {if (!(c&0x1f)) label[i++]='\n'; label[i++]=c;}
+  for (c = ' '+1; c < 127; c++) {
+   if (!(c&0x1f)) label[i++]='\n';
+   // need a double-@ to escape the @ symbol
+   if (c == '@') label[i++]='@';
+   label[i++]=c;
+  }
   label[i++] = '\n';
   for (c = 0xA1; c; c++) {if (!(c&0x1f)) label[i++]='\n'; label[i++]=c;}
   label[i] = 0;
 
 
#3 matt
00:57 Jul 16, 2005
Fixed in Subversion repository.

Thanks for the patch!
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.