Modify Variable font?
Modify Variable font?
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?
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.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?
Flare v6.1 | Capture 4.0.0
Re: Modify Variable font?
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 italicsAndrew wrote: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.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?
-
ChoccieMuffin
- Senior Propellus Maximus
- Posts: 2650
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Modify Variable font?
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.
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.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Modify Variable font?
To clarify: are you talking about your output, or inside Flare? Have you edited the MadCap|variable element's style at all?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
Flare v6.1 | Capture 4.0.0
Re: Modify Variable font?
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
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
-
ChoccieMuffin
- Senior Propellus Maximus
- Posts: 2650
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Modify Variable font?
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.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx