<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV><DIV>I'm sitting here looking at the fonts stuff, reading docs, feeling overwhelmed. I have a number of questions which I'm hoping you guys can help me with.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1) For most of my uses, the cairo_select_font_face() and cairo_set_font_size() are probably functionally good enough. I'm confused on what the Cairo "Toy" font reference is. Does this mean these APIs are just for toy usage, or does it do something different than if it used other APIs. There is a type that is a TOY, so I'm assuming it does something different than if I'd use the more "involved" APIs. What are the ramifications of that?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>2) I have some cases, where I want to select fonts for different encodings. To display mixed language texts. For that, I'm going to have to get comfy with FcPattern and pattern it looks like. Can anyone point me to some sample code/tutorial/whatever that would jumpstart figuring out what a common pattern is for doing this stuff. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>3) Scaled Fonts - Am I correct in discerning that to select a scalable font under X, I'd have to first create the font using cairo_ft_font_create_for_pattern() and then pass that to cairo_scaled_font_create()? Maybe it's the case that a cairo scaled font, is not the same thing as an X11 scalable font and that's what's causing me the confusion.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>4) font_options_substitute - Is the common pattern basically to create a set of font options at application startup time, and then call this function each time you create a font?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>TIA</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Travis Griggs</DIV><DIV>Objologist</DIV><DIV>10 2 letter words: "If it is to be, it is up to me"</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
DISCLAIMER: This email is bound by the terms and conditions described at
http://www.key.net/disclaimer.htm
</STRONG></P></BODY></HTML>