Defining fonts
What do you need when all your pages should like the same beside the same layout? Correct, you must need the same fonts, header fonts, ... on all pages.
So, here's how to make sure you use the fonts correctly:
Defining fonts
Here's a pice of code which defines a font:
deffont
name header
start <font face="Arial, Helvetica" size=+2><b>
end </b></font><br>
enddef
Ok doesn't look difficult, does it? The first thing you need is a fontname.
As most other makeHTML names, commands, ... it is caseinsensitiv. And we
need to know the start and the end tag.
Important note: Please don't missuse fonts for defining abbreviation by leaving the end blank. There's a special construction for that.
Useing fonts
And - as you can already imagine - it is also not difficult to use a font.
In the following example we'll use the one which was defined above. Of
course, the definition must be in the makefile and the usage must be in
on of the content files.
<!--startfont:header-->This text is a header<!--endfont:header-->
Ok, this is not no little to type, but you can copy'n'paste with your
editor. (Even vi can! ;-) But it has one big advantage: Every time you
want to change your fonts, you'll only have to change your makefile(s).
Other nice font features
Unused fonts:
If you defined a font which is not used in your hole project makeHTML will
warn you that they are defined, but not used. This is to aviod errors when
you use similar names. (In futur version you'll be able to disable this
using the --no-warn-unused-fonts parameter.)
Standard fonts:
Obviously it is useful to use one standard font which is active for all
pages from the start to the end, if no other font is set. Instead of
adding a startfont at the begin and an endfont at the
end of every content file, you can simply define in your makefile:
set default_font stdIn this case, the font std must be defined using deffont.