trichview.com

trichview.support




Re: Use template default font


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/21/2004 23:47:11


RVStyle.TextStyles[0] can be used as a default font for HTML saving (with

SaveHTML method).

Include rvsoDefault0Style in the Options parameter of this method, and

attributes of RVStyle.TextStyles[0] will not be saved in HTML.

For each text style, TRichView saves in HTML only attributes that are

differerent from the attributes of RVStyle.TextStyles[0]. Thus, if

rvsoDefault0Style is used, for all text styles having the same font name as

RVStyle.TextStyles[0], font name will not be saved in HTML (this same as for

size and color).


Note: changing font name of RVStyle.TextStyles[0] affects all text in the

document that use this style.

So it's recommended to define the default font before creating the document.


> In my editor, besides loading the windows font into the font combobox, I

> will be adding a "Use Template Font" font item. I want rve to know that

once

> this "Use Template Font" is selected, all the font that created under this

> font type will have a blank font tag after I have exported it to HTML.

This

> allows those font that created under "Use Template Font" type to changed

> according to the HTML template that I have created.

>

> For example, I have typed "This is TRichView" where "This is" is created

> using "Use Template Font" type while TRichView the type of Arial. Once it

is

> being exported to HTML script, I will extract out the body then insert it

> into a html template. So, if the "This is" doesn't specified with any font

> tag, it will be using the default font in the template. Any workaround,

> Please? Thanx :)

>

>





Powered by ABC Amber Outlook Express Converter