Open bobh0303 opened 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.
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