[pmwiki-users] Controlling font family and font size

Petko Yotov 5ko at 5ko.fr
Sun Mar 23 19:36:53 CDT 2008


On Monday 24 March 2008, Steven Benmosh wrote:
> The text above and in the table is rather skinny for my old eyes, and I
> would prefer to change both the font family and the font size. I looked at
> the documentation for font control, but it appears that it is not that easy
> to set the font family and the font size, especially if the changes are
> only for one page. The rest of the site is okay, even though the text style
> and font are the same, because I use a different layout with bolds, links
> and images. On the home page, I would prefer Times 14, rather than what I
> have, which looks like Arial 12 or Courier 12 (san serif).

Hi. It is actually quite easy:

   >>font-family=serif font-size=14pt<<
   Here is my bigger text in Times.
   >><<

If you need to use the same setting at more than one place, it may be better 
to add a file "pub/css/local.css" containing something like:

   div.bigtimes { font-family: "Times New Roman", serif; font-size:14pt; }

and then, in the page, use 

   >>bigtimes<<
   Here is my bigger text in Times.
   >><<

Thanks,
Petko




More information about the pmwiki-users mailing list