-
Font Object for latin languages
Hi Friends,
i’m startet to play with the new Font Object functionality what was added in v24.
My script should pick me randomly a latin font.
So far so good, but how I can filter just for fonts how support the latin language?
I tried <b style=”font-family: inherit; font-size: inherit;”>FontObject.writingScripts <font face=”inherit”>but </font>don’t<font face=”inherit”> relay unterstand the numbers value what </font>I<font face=”inherit”> get from that function.</font>
<font face=”inherit”>Do you have an idea for that?</font>
var myFonts = app.fonts.allFonts;
var fontGroup = Math.floor(Math.random() * myFonts.length);
var fontName = Math.floor(Math.random() * myFonts[fontGroup].length);var rFont = myFonts[fontGroup][fontName];
alert(rFont.writingScripts);