From: <hba...@ma...> - 2005-05-11 02:01:18
|
Per has been struggling to get the AquaTerm driver to properly display example 24, which it should handle now that it is unicode enabled. This was difficult because it looks like PLplot doesn't always use UCS4 for text. Was it incorrect to assume that all PLplot text that is sent to a driver is UCS4? Is there some way to tell otherwise? Since the AquaTerm driver does its own unicode conversion (i.e. UCS4 -> UTF8) it gets very confused if the text is already UTF8. -Hazen On Tuesday, May 10, 2005, at 12:57PM, Per Persson <per...@ma...> wrote: >Hi Hazen, >here is a patch for plcore.c that handles utf8->ucs4 in pl_text without >relying on libunicode. >This fixes x24c (peace flag), as long as the selected font supports the >glyphs. I used Arial Unicode MS for all tests. > >The patch is not tied to Mac OS X in any way (except assuming that an >int is 32 bits...) and could be used as the default routine. I couldn't >find any other uses of libunicode calls in plcore.c (didn't look very >hard) so that dependency could be removed from plcore using this code >instead. That way, the #ifdefs would go away completely which is IMHO a >Good Thing. > >PS. I'm cc-ing the list in case anyone has questions about the patch. > >/Per >-------- >Per Persson, Ph.D. Applied Signal Processing >Resume, contact info and more: >http://homepage.mac.com/persquare > > > > > > |