mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
Additional fix for STR #1415 for Xft font selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -96,6 +96,10 @@ const char* fl_encoding_ = "iso8859-1";
|
||||
Fl_FontSize* fl_fontsize = 0;
|
||||
|
||||
void fl_font(int fnum, int size) {
|
||||
if (fnum==-1) { // special case to stop font caching
|
||||
fl_font_ = 0; fl_size_ = 0;
|
||||
return;
|
||||
}
|
||||
if (fnum == fl_font_ && size == fl_size_
|
||||
&& fl_fontsize
|
||||
&& !strcasecmp(fl_fontsize->encoding, fl_encoding_))
|
||||
|
||||
Reference in New Issue
Block a user