I am trying to use the font "Droid Sans" (as in http://www.tug.dk/FontCatalogue/droidsans/) in a html file generated from a tex-file.
I have succeeded in using the font as standard for a pdf by adding the following lines to my tex-file:
\renewcommand{\familydefault}{\sfdefault}
\usepackage[defaultsans]{droidsans}
\usepackage[T1]{fontenc}
HTML
Now I have tried the same with the tex4ht-Config-File, adding those lines directly after the \Preamble
-part (and also I have tried it already anywhere else in the document). The file looks like this:
\Preamble{html,index=2,info,sections+}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[defaultsans]{droidsans}
\usepackage[T1]{fontenc}
\begin{document}
\Css{
% listings: grey background
.listings { background-color: \#e5e5e5 ; }
}
% redefine \label to also create a HTML anchor
\let\labelOrig\label
\renewcommand{\label}[1]{
\HCode{<A NAME="}#1\HCode{"></A>}
\labelOrig{#1}
}
\EndPreamble
But it doesn't seem to work. The "rendered font" I get for my html-page is always "Liberation Serif", with or without using the commands stated above. How can I make my html-file use Droid Sans?
I am using Ubuntu 14.04