Menu

#35 accented characters 3

closed
None
5
2004-10-31
2004-08-25
Anonymous
No

i wrote mail to Thomas Boutell
and i got some answer.

question:
>
> i want to ask for iso-8859-2 support in gdlib.
> can i use all fonts which contains this characters?
> i use gnuplot ang png terminal for some images and i
need to include accented characters.
> but if i use own font (which have latin-2 chars) this
not working.
> thanks for ansver

answer:
If you are using the freetype routines
(gdImageStringFT) and fonts that support iso-8859-2 it
should work fine.

Thomas Boutell

i think that gnuplot using that routines, isn't it?
so have you any other advice for me.
thank you

Discussion

  • Ethan Merritt

    Ethan Merritt - 2004-08-26

    Logged In: YES
    user_id=235620

    The problem is that I'm afraid Thomas Boutell does not
    understand character encodings, which is why his program
    doesn't understand them either. If you can find, or
    construct, a font for which iso-8859-2 encoding is the
    primary encoding (e.g. the first one in the list) then gd
    will use it. Otherwise I am afraid it's not going to work.
    I say this as the guy who already had to construct a patch
    for libgd to make it handle symbol encodings as a special case.

    Your other option is to use unicode (UTF-8). Unicode fonts
    do work with libgd. This would be a way of getting the
    characters you need, but it would not be Latin-2 encoding.

     
  • Nobody/Anonymous

    Logged In: NO

    OK,
    but how i set gnuplot to unicode encoding?
    in encoding option are only
    iso_8859_1, iso_8859_2, iso_8859_15, cp850, cp852, cp437, koi8r

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> sfeam
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.