| [ 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: | |
Trouble Report Files:
Trouble Report Comments:
|
#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 ]
|
| |