<div dir="ltr">Hi,<div><br></div><div>I can't say anything off hand without looking at the properties of those fonts resulted by fc-scan though, checking the score evaluation from the debugging log may give you an idea why it became so. try again with  FC_DEBUG=3.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 10, 2016 at 2:42 PM, Simon Cozens <span dir="ltr"><<a href="mailto:simon@simon-cozens.org" target="_blank">simon@simon-cozens.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can't work out how to make FC select fonts with the kind of<br>
granularity I need.<br>
<br>
Suppose I have the Arno Pro family, which contains the following faces:<br>
<br>
ArnoPro-Regular ArnoPro-Smbd ArnoPro-Bold<br>
ArnoPro-Italic ArnoPro-SmbdItalic ArnoPro-BoldItalic<br>
<br>
ArnoPro-Subhead ArnoPro-SmbdSubhead ArnoPro-BoldSubhead<br>
ArnoPro-ItalicSubhead ArnoPro-SmbdItalicSubhead<br>
ArnoPro-BoldItalicSubhead<br>
<br>
ArnoPro-Caption ArnoPro-SmbdCaption ArnoPro-BoldCaption<br>
ArnoPro-ItalicCaption ArnoPro-SmbdItalicCaption<br>
ArnoPro-BoldItalicCaption<br>
<br>
ArnoPro-SmText ArnoPro-SmbdSmText ArnoPro-BoldSmText<br>
ArnoPro-ItalicSmText ArnoPro-SmbdItalicSmText ArnoPro-BoldItalicSmText<br>
<br>
ArnoPro-Display ArnoPro-SmbdDisplay ArnoPro-BoldDisplay ArnoPro-LightDisplay<br>
ArnoPro-ItalicDisplay ArnoPro-SmbdItalicDisplay<br>
ArnoPro-BoldItalicDisplay ArnoPro-LightItalicDisplay<br>
<br>
This works:<br>
<br>
$ fc-match 'Arno Pro:slant=Italic:weight=800'<br>
ArnoPro-BoldItalic.otf: "Arno Pro" "Bold Italic"<br>
<br>
This doesn't:<br>
<br>
$ fc-match 'Arno Pro:slant=Italic:weight=200'<br>
ArnoPro-BoldItalic.otf: "Arno Pro" "Bold Italic"<br>
<br>
Is there a way to access the semibold here?<br>
<br>
And then display styles are another problem.<br>
<br>
This works:<br>
<br>
$ fc-match 'Arno Pro:style=Caption'<br>
ArnoPro-Caption.otf: "Arno Pro" "Caption"<br>
<br>
This doesn't:<br>
<br>
$ fc-match 'Arno Pro:style=Caption:weight=800'<br>
ArnoPro-Caption.otf: "Arno Pro" "Caption"<br>
<br>
Nor this:<br>
<br>
$ fc-match 'Arno Pro:style=Caption:slant=<wbr>Italic'<br>
ArnoPro-Caption.otf: "Arno Pro" "Caption"<br>
<br>
Is there a way to make this work?<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div>