I tried by make Excel file & import as a csv file in sqlite. But it shows me in normal font rather than bold or italic font.
In my app, I uses the sqlite database and fetches data from it. I want to display some text in italic font,How can i do that??
Does Sqlite supports Italic?
When you read bold text, you are interpreting a “strong” meaning. This strong meaning can be emphasized in a number of different ways (for instance, all caps: BOLD). Your text shouldn’t contain information about how the information is presented (style), but it SHOULD contain information about the meaning (structure). Keeping these two separate gives you more flexibility to change how the text is presented if, say, you wanted to change your website template or application design. You could choose to display strong text as bold, all caps, all caps and underlined, etc. on a whim.
I recommend some subset of HTML, as it is structural by nature and very widely used. In HTML, the bold tag exists (
<b>; however, it is stylistic, so the<strong>tag is recommended to encode the strong meaning instead).Databases don’t support encoding; however, you can encode the text yourself before sticking it in the database. Here is an example of an HTML-encoded string:
When you extract it, you could choose to represent the strong text as bold:
Or as CAPS:
Or even italic caps:
There are many other ways to encode structure, including Mark Down (I believe that’s what StackOverflow uses).