silnrsi / smith

font development, testing and release
Other
14 stars 5 forks source link

ftml() fonts parameter should be list of fontsrc values #38

Open bobh0303 opened 7 years ago

bobh0303 commented 7 years ago

ftml() fonts parameter should be list of fontsrc values (e.g. src: parameter of the css @font-face attribute), not file names. Otherwise it is impossible to include installed fonts (should a developer desire to do so).

See also font-padauk #13

bobh0303 commented 7 years ago

I have learned that the ftml2odt tool accepts plain strings for fonts and then differentiates whether an installed font or ttf file is intended based on presence of '.' -- strings without '.' are assumed to be installed font names, while strings with '.' are assumed to be file names. This might be an acceptable smith strategy instead of my proposal above (using url() and local() css syntax).

However I wonder if, when smith ftml writes out the ftml_index.html file, the fontsrc parameter to the xsl should already be formatted using url()/local() notation so the xsl doesn't have to try to figure that out.