Re: Can not be displayed in Chinese
Posted: 17 Oct 2009, 23:57
It is empty since you did not add -debug all to the shortcut or terminal.mengcnt wrote:stderr.txt is empty
It is empty since you did not add -debug all to the shortcut or terminal.mengcnt wrote:stderr.txt is empty
What was the fix then?mengcnt wrote:Thank you, now show normal Chinese
And by "our" you mean "QuesoGLC/fontconfig's".cybersphinx wrote:EDIT: Hm, looks like changing the fontname is needed after all, guess our substitutions suck.
By "our" I mean "those in the config files we include". fontconfig and quesoglc themselves don't have any substitutions, by default they use the font name, and if the font doesn't have all characters needed, bad luck.Zarel wrote:And by "our" you mean "QuesoGLC/fontconfig's".
Either way, it's not going to work because we have no other font to substitute. We only bundle DejaVu Sans, and we don't load any fonts other than our bundled fonts because loading all fonts causes first-start to take around half an hour on Windows.cybersphinx wrote:When I use "sans" as font name in the game (generic name for a sans serif font that defaults to DejaVu Sans (or maybe Bitstream Vera Sans) here, but has substitutions for other charsets), I can choose any language, and after a restart a suitable font for e.g. Chinese is used (before the restart I get boxes as in the screenshot here), but for everything. When I use "DejaVu Sans", even after a restart, no other font is used. Using "DejaVu Sans" in other programs like Firefox or OpenOffice gives substitutes, though (and of course DejaVu itself for the characters it can display).
So it looks like QuesoGLC (0.7.2 here) somehow doesn't use fontconfig's substitutions, but gets a fontname from it and uses that font only... If that's the case, even getting good substitutions won't help. (And I'm not sure, but I think some time ago, maybe with an older glc version, this worked...)
Because we're making an OS-independent game? Besides, there is no such concept in Linux.Zarel wrote:Why can't we just use OS-native font-rendering? :/
This is what #ifdef is for!cybersphinx wrote:Because we're making an OS-independent game? Besides, there is no such concept in Linux.Zarel wrote:Why can't we just use OS-native font-rendering? :/
Would that mean getting rid of quesoglc for windows? How would you render the text then? Bitmap font?Zarel wrote:This is what #ifdef is for!
And also abstraction. So we have a function that will call native functions in Win/Mac, and QGLC in Linux.
I beg to differ. That's what system independent libraries are for.Zarel wrote:This is what #ifdef is for!
So you want to write a new abstraction layer? Why not look into glc and see if that can be made to work well (maybe by using native functions)? Else you just end up with a bad rewrite of (parts of) it.And also abstraction. So we have a function that will call native functions in Win/Mac, and QGLC in Linux.
There never was a need for it, but as usual "first implemented solution wins".-Kosh- wrote:I guess it is now apparent that there is no need for that rather silly requester to pop up in the installer or maybe change the wording.
System independent libraries that have been causing tons of problems for us?cybersphinx wrote:I beg to differ. That's what system independent libraries are for.
Meh, how's about bundling a Chinese font? Anyone know of any Free Chinese fonts?cybersphinx wrote:There never was a need for it, but as usual "first implemented solution wins".
I don't mind using a different library if you know a better one. But how can those libraries improve when people return to their system specific ifdefs as soon as they encounter a problem?Zarel wrote:System independent libraries that have been causing tons of problems for us?cybersphinx wrote:I beg to differ. That's what system independent libraries are for.
The problem with many of the smaller system independent libraries is that they have problems on all platforms not named Linux. (GTK does that, too, and it's not even one of the smaller ones...)
I get a strong feeling of déjà vu here...Meh, how's about bundling a Chinese font? Anyone know of any Free Chinese fonts?