<div dir="ltr">The problem on that idea is how to figure out what the minimal coverage in emoji block. at this point, the minimal glyph coverage for langs are defined in fc-lang/*.orth and cache files contains lang property only which fonts satisfies the coverage for. if there are any specs defining a must or an optional to have, that may be helpful otherwise we may need to think about another idea for that.<div><br></div><div>maybe good to have a property in a cache to indicate if a font has an emoji or not, and we could leave the way to use it to applications perhaps.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 4:28 PM, Guo Yunhe <span dir="ltr"><<a href="mailto:guoyunhebrave@gmail.com" target="_blank">guoyunhebrave@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I recently studied some emoji fonts. These emoji fonts have fontconfig difficulties when packaging. They try to set the font as default emoji font but do not affect others. Usually the font has a separated configure file.<br>
<br>
<match><br>
  <test name="family"><br>
    <string>sans-serif</string><br>
  </test><br>
  <edit binding="strong" name="family"><br>
    <string>Nimbus Sans L</string><br>
    <string>EmojiOne Color</string><br>
  </edit><br>
</match><br>
<br>
However, this will affect sans-serif font settings of other font packages or users' setting, because the package do not know which sans-serif font users want to use.<br>
<br>
I suggest maybe we can map the Unicode emoji block as test condition. Just like when we set a Japanese font, it won't affect English and Arabic fonts.<br>
<br>
<match><br>
  <test name="family"><br>
    <string>sans-serif</string><br>
  </test><br>
  <test name="lang"><br>
    <string>emoji</string><br>
  </test><br>
  <edit binding="strong" name="family"><br>
    <string>EmojiOne Color</string><br>
  </edit><br>
</match><span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Guo Yunhe<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org" target="_blank">Fontconfig@lists.freedesktop.o<wbr>rg</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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Akira TAGOH</div>
</div>