[cairo] Question about Unicode and font family families

Behdad Esfahbod behdad at behdad.org
Sun Dec 29 06:29:08 UTC 2019


On Sat, Dec 28, 2019 at 9:34 PM <camel-cdr at protonmail.com> wrote:

> Hi.
> I had some problems with cairo_show_text not displaying Unicode correctly.
> It used to work back on my Debian setup, but some characters don't seem to
> work on arch.
> This should be a problem with the font config, but I don't now what to do.
> The terminal and all other applications display the characters without a
> problem.
> These are some of the characters that don't work:
> "☢ ☃"
>

It's different font sets and default fonts.

HOWEVER, cairo_show_text() is *toy* API.  It's not usable for any real text
rendering.  You should look into using pangocairo instead.


> On a slightly related note, how is it possible to select a specific font
> family for Cairo.
>

cairo_select_font_face().



> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>


-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20191229/96a49756/attachment.htm>


More information about the cairo mailing list