I have for writing essay in the report. I just want to bold some text in my verse. I have put <b></b>
tag in text, but it does not work.
An example of what I want is "My first name is Jason and my last name is Michael". Anybody know about this?
You can simply change you JTextField font by doing the following: f. setFont(new Font("Tahoma", Font. BOLD, 14));// Tahoma is an example, you could use any forn you want.
Use inline styles to bold specific text in React. js, e.g. <span style={{fontWeight: 'bold'}}>world</span> . The bold font will only be applied to the element to which it was added and its children.
The <b> tag specifies bold text without any extra importance.
To make bold text in react native we have to use fontWeight: 'bold' text style.
Try surrounding the words you want to highlight with HTML <b></b>
(bold) tags, and change the field content type to HTML
This work good:
"<style isBold='true' pdfFontName='Helvetica-Bold'>" + $F{data} + "</style>"
for input data from datasource, or
<style isBold="true" pdfFontName="Helvetica-Bold">Bolt text</style>
only for some static text.
For Text-field set properties Markup = styled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With