Slaesforce FAQ

how to bold text in salesforce apex

by Adam Kiehn Published 2 years ago Updated 2 years ago
image

Simply add the text you want in bold If you know ahead which values will be bold (meaning no custom logic in apex), then it would be best to use style="font-weight:bold;" and hardcode this style into your visualforce. But if you require custom logic within apex to determine if it will be bold or not

Bold Text with Roboto Light font in Salesforce CPQ Document Generation
  1. Navigate to the Template Content and click Edit.
  2. In the Template Content editor, highlight the words you wish to be bold.
  3. Change the font on those words to Roboto.
  4. With the text still highlighted, click the bold modifier in the Template Content editor.

Full Answer

How to make text bold in apex?

You can't do it in the apex class. If you know ahead which values will be bold(meaning no custom logic in apex), then it would be best to use style="font-weight:bold;" and hardcode this style into your visualforce.

How do I make my text bold?

Type the keyboard shortcut: CTRL+B.

Is bold a font style?

Bold-font definition A set of type characters that are darker and heavier than normal. A bold font implies that each character was originally designed with a heavier appearance rather than created on the fly from a normal character.

Where is bold on the keyboard?

To make text bold, select and highlight the text first. Then hold down Ctrl (the control key) on the keyboard and press B on the keyboard.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9