[pmwiki-users] Can I change the font of characters?
Patrick R. Michaud
pmichaud at pobox.com
Mon Feb 26 15:15:40 CST 2007
On Tue, Feb 27, 2007 at 12:45:35AM +0800, 辉飞 饶 wrote:
> For example, I want to specify "Arial" font for a paragraph, and "Times
> New Roman" for another paragraph. Can I do this in pmwiki?
%p font-family=Arial% This paragraph is in Arial.
%p font-family='"Times New Roman"'% This paragraph is in Times New Roman.
If you plan to do a lot of font changes in paragraphs, you can do:
%define=times font-family='"Times New Roman"'%
%define=arial font-family=Arial%
and then later
%p arial% This paragraph is in Arial.
%p times% This paragraph is in Times New Roman.
%p times% This paragraph is Times New Roman
with some %arial% Arial text %% in the middle.
You can also define the times/arial wikistyles using CSS:
.times { font-family:"Times New Roman"; }
.arial { font-family:Arial; }
Lastly, note that some platforms (e.g., Linux) often don't
have fonts named "Times New Roman" and "Arial", so you might want
to add "serif" and "sans-serif" to the options:
.times { font-family:"Times New Roman", serif; }
.arial { font-family:Arial, sans-serif; }
Pm
More information about the pmwiki-users
mailing list