Thanks a lot

"Patrick R. Michaud" <[EMAIL PROTECTED]> 写道: 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附件! 
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to