# [tex4ht] Fontspec and tex4ht

Michal Hoftich michal.h21 at gmail.com
Tue May 14 17:34:17 CEST 2013

Hi all,

I am playing with fontspec and tex4ht. Because tex4ht binary doesn't
support opentype fonts (or fonts without tfm file), I tried to modify
fontspec package so it doesn't include opentype fonts when tex4ht is
running.

At first, I tried to collect changes to file fontspec.4ht, but I found
that these changes take place after \begin{document}, which is
preamble. Because of this, I created package fontspec-4ht.sty and
modified fontspec code to include this file when tex4ht is running.
But if there is some option to use commands from fontspec.4ht file in
the preamble, I would prefer it.

If anyone want to try the package, it is placed at github:
https://github.com/michal-h21/fontspec