> > I would like to display some Chinese fonts with Fluid 1.3.x=20 > > but it does not work. It only shows square boxes. > > In a sense, that does mean it is working. > What is happening is that the font that is selected does not include the > necessary glyphs for the characters being displayed - so the font > renderer draws the box to mark where the glyph should be, but does not > know what to draw for the glyph... > > Unfortunately, the UTF8-isation of the fltk code-base has not reached > the point where fluid can support setting arbitrary fonts for your > widgets. > You can set arbitrary fonts in code, of course, just not via fluid yet, > I'm afraid.
Many thanks for your answer ! If I understand correctly, I will not be able to type some Chinese font in Fluid, but instead I will have to type the fonts as shown here to be able to have them displayed in my application: http://www.seriss.com/people/erco/fltk/utf8-japanese-songs.cxx > > See the utf8 example in the test folder for some examples of using other > fonts, and also Greg's example > http://www.seriss.com/people/erco/fltk/#UTF8-Japanese of doing this. > > > Then, I would like to compile and display these Chinese fonts=20 > > and would like to know which library I should use while=20 > > compiling the software. > > I'm not sure I understand what you are asking for here - once you have > selected a suitable font, it pretty much ought to Just Work. What I meant is : despite FLuid is not able to display Chinese fonts, is it possible that the "exe" file can display the Chinese fonts via the source code, as shown in the Japanese example ? > > What platform are you on? I am working on Linux Debian. > On OSX and Vista, there's a fair chance that > the font rendering engine will automatically fill in any missing glyphs > for you, but with our current implementation on *nix and > (pre-vista)windows you'll need to set a suitable font explicitly > yourself. > > Again, Greg's example shows how to go about doing that. > > The utf8 demo program, if run from a shell, will print to stdout the > "fltk-name" of the selected fonts as you run it, so you can use that as > a quick way of sorting through the fonts that are installed on your > system and finding one that has the necessary glyphs for your text. > > Hope that helps (and makes some sort of sense!) > --=20 > Ian Thanks a lot for providing the very first ideas to think of ! Eric > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS= > 14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

