Question
Can we change the default font of a twiki site? If yes, which fonts are available? In
TextFormattingRules, we are just taught about bold, italic, colors... but little about fonts.
Environment
--
ThienAnVo - 08 Aug 2004
Answer
I have never tried it but it might be done by using CSS (Cascading style sheets). You will have to edit the template files if you want to change the font for all users. If you want to use a particular font on a wiki page you have to use HTML. Example:
The page should the look something like this:
<div style="font-family:yourfont;">
...
</div>
Which fonts are available depends on the user so you should always use a list of fonts with at least one font that is widely available (like Times, Arial, Helvetica, ...).
--
ChristianKohl - 09 Aug 2004
Option 1) If you wait a couple of weeks for
CairoRelease, then changing the font is just a matter of editing the
PatternSkin css file.
Option 2) install a CSS using skin from the
Plugins.WebHome web.
Option 3) edit
templates/view.tmpl and add a CSS style block (not recommended).
Option 4) If you want to change the font family right now, the simplest thing to do is to repurpose one of the header variables in
TWikiPreferences which aren't used much. For example:
* SET HTTP_EQUIV_ON_VIEW = <style type="text/css">body {font-family: Georgia, "Times New Roman", serif;}</style>
All of the above methods are global, they change all text on all pages. If you want to use a particular font for just a certain phrase or paragraph you need to use html code:
<font face="Garamond">
A short sentence in a different font.
</font>
--
MattWilkie - 09 Aug 2004
See
TWiki.PatternSkinCustomization to see how to change the default font settings (CSS) of
TWiki.PatternSkin.
--
ArthurClemens - 14 Aug 2004