How do I change a particular font

12 views
Skip to first unread message

TK

unread,
Jan 4, 2010, 9:40:42 PM1/4/10
to TiddlyWiki

How do I change the font of text which appears between {{{ }}} these
curly braces?


TK

David

unread,
Jan 7, 2010, 5:12:42 PM1/7/10
to TiddlyWiki
I'm assuming that you mean you want to change the font of the text
between {{{ }}} when it is displayed (not edited).

Add this line anywhere in your StyleSheet. Change to the fonts of your
choice. If you are displaying this on the web you will want to list
several fonts, which will be selected by the user's browser based on
the first match with installed fonts, going from left to right.

pre { font-family: Helvetica, Arial, sans-serif; }

A list of browser-safe fonts can be found here:
http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

If you want to change more than the font (such as size, etc) check
this page: http://htmldog.com/reference/cssproperties/font-family/

Fonts are separated by commas. Font names with spaces must be put in
quotes: "Times New Roman"

I am uncertain if the <pre> tag is used elsewhere in TW, so if this
changes your font in places you don't want it changed, we'll need more
specificity.

Reply all
Reply to author
Forward
0 new messages