From: Tim D. <tw...@do...> - 2010-09-27 12:56:38
|
Hi, A user of the charting library http://hackage.haskell.org/package/Chart has pointed out that it doesn't display unicode strings correctly. I suspect that this is because the library currently uses the cairo functions "selectFontFace" and "showText". In the documentation these are described: "This function is meant to be used only for applications with simple font needs: Cairo doesn't provide for operations such as listing all available fonts on the system, and it is expected that most applications will need to use a more comprehensive font handling and text layout library in addition to cairo." "NOTE: The showText <http://www.haskell.org/gtk2hs/docs/cairo-docs-0.11.0/Graphics-Rendering-Cairo.html#v%3AshowText> function call is part of what the cairo designers call the "toy" text API. It is convenient for short demos and simple programs, but it is not expected to be adequate for the most serious of text-using applications. " Does this mean that I need to use the pango library for correctly displaying unicode? Can someone point me to a simple example using unicode+cairo? Thanks, Tim |