![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ruini Xue wrote:
I want to define sans to A.ttf, and if A.ttf is unavailable, B.ttf will be used. So the question is, how to test whether a font is available? Or is it possible to provide a list of candidates (e.g., \definefontsynonym[sans][name:A.ttf;name:B.ttf])?
you can do something \doiffontpresentelse{A} { \definefontsynonym[sans][A] } { \definefontsynonym[sans][B] } i guess that this also works \expanded{\definefontsynonym[sans][\doiffontpresentelse{A}{A}{B}]} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------