[pmwiki-users] 回复: Re: Can I change the font of characters?

辉飞 饶 rhf417 at yahoo.com.cn
Mon Feb 26 21:15:32 CST 2007


Thanks a lot

"Patrick R. Michaud" <pmichaud at pobox.com> 写道: 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


 		
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070227/fa1661ef/attachment.html 


More information about the pmwiki-users mailing list