FLTK logo

STR #3073

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 | SVN ⇄ GIT ]

STR #3073

Application:FLTK Library
Status:2 - Closed w/o Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:None
Summary:In Windows, FLTK is slow when widget's label include MBCS string.
Version:3.0
Created By:cyantree
Assigned To:matt
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 cyantree
09:52 Apr 29, 2014
fltk-3.zip
2k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 cyantree
09:52 Apr 29, 2014
Description:
In windows, FLTK program will take several seconds to complete GUI when widget contains MBCS string, such as Chinese.

Cause:
When draw label to GUI, Fl_GDI_Graphics_Driver::draw(...) will get character's width. Mybe for efficiency, it cache neighbouring 1024 character's width when get one character's width. But when draw MBCS string, it will take too much time to slow show speed. So I modify it. Just cache current character's width and speed become normal.

Need modify files:
src/fltk3/font.h, src/fltk3/win32_font.cxx
 
     

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'.