Page 1 of 1
Modify Variable font?
Posted: Wed Jul 21, 2010 1:25 pm
by shwetae
I am using variable to denote the Company Name.How can I change the font of the variable to match the text in the topic?
Re: Modify Variable font?
Posted: Wed Jul 21, 2010 1:28 pm
by Andrew
shwetae wrote:I am using variable to denote the Company Name.How can I change the font of the variable to match the text in the topic?
Er, it should always match the text of whatever paragraph or span you've inserted it into. It takes its formatting from the surrounding text.
Re: Modify Variable font?
Posted: Wed Jul 21, 2010 1:31 pm
by shwetae
Andrew wrote:shwetae wrote:I am using variable to denote the Company Name.How can I change the font of the variable to match the text in the topic?
Er, it should always match the text of whatever paragraph or span you've inserted it into. It takes its formatting from the surrounding text.
Technically it should but I am not able to see it.I can always see the inserted variable in bold even if the text around is in italics

Re: Modify Variable font?
Posted: Wed Jul 21, 2010 1:47 pm
by ChoccieMuffin
Ah, I've seen that happen - actually I wanted to change a variable to use a different font not the regular body font, so that's how I figured out how it is.
Insert a variable, and then in the XML editor highlight JUST the variable. The available options in the Styles window change to show styles that are applicable to variables. (Press F12 if you don't have the Styles window open.) The style, or class, that is most likely what you have is Madcap:variable, which you should see at the top of the Style window. To check what bits have changed from the default, click Edit style.
Styles for variables are just like other styles, in that there's a parent class (e.g. <p>) to which you can add sub-classes. If you want to have some variable sets in one font and others just in the default font for the paragraph the variable has been inserted into, you might want to edit Madcap:variable so that all the values are "default", and you can add another sub-class (in my case I added Madcap:variable.UI) and apply various attributes such as a different font, italics, bold, that kind of thing. To add another style, at the top of the Styles window, when your variable is highlighted click Edit style. Add the name of the sub-class (for mine I just added "UI", not the whole thing). A new style is added to the stylesheet and applied to the variable. To edit the style, click Edit style to go to the stylesheet and fiddle around with the attributes.
There, that should do it for you. Let me know if it doesn't.
Re: Modify Variable font?
Posted: Thu Jul 22, 2010 4:54 am
by Andrew
shwetae wrote: Technically it should but I am not able to see it.I can always see the inserted variable in bold even if the text around is in italics

To clarify: are you talking about your output, or inside Flare? Have you edited the
MadCap|variable element's style at all?
Re: Modify Variable font?
Posted: Mon Jul 26, 2010 6:17 am
by shwetae
Hi Andrew
I am talking about the output.
I have tried editing the MadCap|variable style.I have tried changing the font,but still the result is same.
Please let me know if I have to make changes anywhere else?
Thanks in advance
Re: Modify Variable font?
Posted: Mon Jul 26, 2010 6:56 am
by ChoccieMuffin
Check that the @print medium in your stylesheet is modified, not just the @web medium. What does it look like if you generate a web output - is it the correct font there? You might need to look at the stylesheet in text editor, just to be sure.