On 2010-02-23 15:29-0800 David MacMahon wrote:

> Thanks, Alan,
>
> On Feb 23, 2010, at 14:48 , Alan W. Irwin wrote:
>
>> No.  -dev xwin is pure Hershey (just like all our traditional devices).
>> 
>> To explain further, we had a first generation of unicode font support via
>> plfreetype.c (e.g., gd.c which is now deprecated because of the limitations
>> of this approach), but now we are relying on external libraries (e.g., the
>> pango/cairo stack of libraries and Qt stack of libraries at our run time 
>> and
>> the svg libraries after our run time when the svg file result with embedded
>> unicode strings is displayed) to properly support unicode fonts.  The only
>> non-unicode and non-Hershey font we support are the Type 1 fonts for the
>> ps.c device driver, but those are interfaced internally with a unicode to
>> type 1 translation table so the overall ps.c font approach is similar to
>> that done for the svg, cairo, and qt devices, but with the very limited set
>> of glyphs that are available for Type 1 fonts.
>
> Are the "USE_FREETYPE" and other related cmake variables all deprecated along 
> with the gd driver?  Are there any other bitmapped dirvers that use it?

Probably the best term is "mostly" deprecated.  Along with the deprecated
gd.c device driver I believe both wingcc and a part of wxwidgets which is
normally not used on Linux still use the plfreetype.c approach.  I hope no
new devices will use it since there are just too many issues (such as all
the horrible configuration and run-time stuff to choose fonts by filename as
opposed to the more modern approaches that just accept a hint for font
family and then the external libraries then grab the glyph from the system
font which most closely matches the hint).

>> softw...@raven> grep dev_unicode drivers/*
>> drivers/aqt.c:    pls->dev_unicode = 1;       /* wants text as unicode */
>
> Is there a way API to query this info via the?  It seems like it would save 
> some confusion if x23c bailed out with an informative message if/when it 
> detects that the user has selected a non-unicode aware driver.

Good point.  Hazen, would your new general get facility (when propagated to
all our languages) be able to detect dev_unicode for the unicode examples?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to