Page 1 of 1
Could I set font per different language?
Posted: Tue Jan 30, 2018 11:19
by mintogo
Hello I'm back..
Previous my question about Hdpi, it was resolved...
now.. I have question about fonts.
On previous version CEGUI .font file, there was GylphsRange(is it right?) to set unicode range, but now it was removed.
If I want to display text contains diffrent language in one StaticText(or Label).
(ex> Hello(안녕하세요) + @(Chinese... Japanese...))
Windows defualt English font "Arial" supports only English.
Some Korean fonts support only Korean.
So I want to display English by Arial, Korean by Nanum, Chinese by Simhei.
Is it possible?
Re: Could I set font per different language?
Posted: Tue Jan 30, 2018 22:46
by andrewfeng123
I don't think CEGUI knows the text language, you might need to write it yourself.
Re: Could I set font per different language?
Posted: Wed Jan 31, 2018 02:52
by mintogo
andrewfeng123 wrote:I don't think CEGUI knows the text language, you might need to write it yourself.
Is there no way set a unicode range per font files?
because it was exist on previous CEGUI version.
Re: Could I set font per different language?
Posted: Wed Jan 31, 2018 05:34
by mintogo
I found about it.
Yes it called by "Font fallback".
here is link about it, someone issued it...
http://cegui.org.uk/forum/viewtopic.php?t=6318Looks commit about Font fallback.
but looks like ver 0.8.7 doesn't includes it.
Re: Could I set font per different language?
Posted: Wed Jan 31, 2018 06:56
by Ident
You are right about that this was not merged. It was probably forgotten when CrazyEddie went on a break and the creator of the change did not make a pull request.
Would be interesting to try out the changes on the latest 0.8.X version. Would you manage to apply the changes and try them out? I can then look into reviewing and merging it if it actually works for your use-case fine.
Re: Could I set font per different language?
Posted: Wed Jan 31, 2018 08:18
by mintogo
[Would be interesting to try out the changes on the latest 0.8.X version. Would you manage to apply the changes and try them out? I can then look into reviewing and merging it if it actually works for your use-case fine.[/quote]
Ok!~ all right.
Althought I am a beginner on programming.. , I will try it.
but I'm not sure I can do it or not..
If something proceed, I will notify..!