Am 05.04.10 23:52, schrieb Wolfgang Werners-Lucchini:
Hallo,
how can I find the complete path of a existing font with luatex under context mkiv. I am looking for an equivalent function to
kpse.lookup(fontname)
Here is a solution which consults ConTeXt’s font database, no path in the output means the font is stored in the TeX tree. Example: \define[1]\FontLookup {\dolookupfontbyspec{#1} \ifcase\dolookupnoffound Font not found\par \else Path: \dolookupgetkey{filename}\par \fi} \starttext \FontLookup{fontname=texgyrepagellaregular} \FontLookup{fontname=texgyrepagellaoblique} \FontLookup{fontname=timesnewromanpsmt} \stoptext Result (on my system): Path: texgyrepagella-regular.otf Font not found Path: /Library/Fonts/Times New Roman.ttf Wolfgang