Re: Question about Unicode and font family families

Behdad Esfahbod <[email protected]> Sun, 29 Dec 2019 06:29:08 +0000
Newsgroups gmane.comp.lib.cairo
Message-ID <CAF63+7UvPzEHkWmwAhCEQuBvVhj7NT4dQDK6d+pf-=DiJCtYpw@mail.gmail.com>
--===============0718903390==
Content-Type: multipart/alternative; boundary="000000000000c512ab059ad1d89b"

--000000000000c512ab059ad1d89b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 28, 2019 at 9:34 PM <[email protected]> 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 t=
o
> 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:
> "=E2=98=A2 =E2=98=83"
>

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
> [email protected]
> https://lists.cairographics.org/mailman/listinfo/cairo
>


--=20
behdad
http://behdad.org/

--000000000000c512ab059ad1d89b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Sat, Dec 28, 2019 at 9:34 PM &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; wro=
te:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">Hi.<br>I had some problems with cairo_show_text not displayi=
ng Unicode correctly. <br>It used to work back on my Debian setup, but some=
 characters don&#39;t seem to work on arch.<br>This should be a problem wit=
h the font config, but I don&#39;t now what to do. <br>The terminal and all=
 other applications display the characters without a problem.<br>These are =
some of the characters that don&#39;t work:<br>&quot;=E2=98=A2 =E2=98=83&qu=
ot;<br></blockquote><div><br></div><div>It&#39;s different font sets and de=
fault fonts.</div><div><br></div><div>HOWEVER, cairo_show_text() is *toy* A=
PI.=C2=A0 It&#39;s not usable for any real text rendering.=C2=A0 You should=
 look into using pangocairo instead.</div><div>=C2=A0</div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex">On a slightly related note, how is it pos=
sible to select a specific font family for Cairo.<br></blockquote><div><br>=
</div><div>cairo_select_font_face().</div><div><br></div><div>=C2=A0</div><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex">-- <br>
cairo mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">cairo@cairogra=
phics.org</a><br>
<a href=3D"https://lists.cairographics.org/mailman/listinfo/cairo" rel=3D"n=
oreferrer" target=3D"_blank">https://lists.cairographics.org/mailman/listin=
fo/cairo</a><br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature">behdad<br><a href=3D"http://behdad.org/" target=
=3D"_blank">http://behdad.org/</a></div></div>

--000000000000c512ab059ad1d89b--

--===============0718903390==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo

--===============0718903390==--