How to set TextView style (bold or italic ) within Java and without using the XML layout? In other words, I need to write android:textStyle with Java. ` italic ` 选择字体族的 italic 变体,如果没有 italic 变体就妥协到 oblique 变体。 如果字体族连 oblique 也未提供,则由浏览器合成倾斜的仿 oblique。 比如 `font-family: Georgia, serif` 时,指定 `font-style: italic `,则浏览器使用 Georgia Italic 。 How do I achieve formatting of a text inside a TextBlock control in my WPF application? e.g.: I would like to have certain words in bold, others in italic , and some in different colors, like this How do I configure VS Code to support italic styles, like in this picture? My current settings: { "editor.fontLigatures": true, "editor.fontFamily": "Operator Mono" }