Superscripts not supports in FontFamily Flutter - flutter

I am using a fontfamily Montserrat which doesn't support the superscript letter
For Example,
XVIIIᵉ theword is sent from the api
When I try to use this I get like this
Text(theWord,fontFamily: 'Monserrat')

Related

Custom TextField in Flutter: add superscript

Is it possible in flutter to develop custom TextField to input numbers with superscript like 102 ?
Well, there has to be a way for the user to specify that he is getting into (and out of) superscript mode (say using a specific key). Using a TextInputFormatter to 'trap' these locations - there should be a way to then display the text the way you wanted.
Alternatively, as in stackoverflow where we use ``` to highlight code and there is a display-only section that shows how the text looks, you can do all sorts of text display for formatting the text as per the codes in the typed text without needing to use the TextInputFormatter method.

is there any way to use 'ə' letter in input field?

I want to write 'Ə' letter on the TMP inputField but it recognize that letter as '?' symbol.And also when I copy and paste that letter to the InputField it works but when I try to insert it from keyboard it does not work. Is there any way to use that letter?
Use TextMeshPro input field instead default input field.
This new version includes Dynamic SDF support where it won't be necessary to add the needed characters to the font asset (ahead of time) via the Font Asset Creator. Instead the needed characters / glyphs can be added dynamically to a newly created font asset in the Editor or at Runtime.
You will still need to create a font asset from a font file that contains the Azerbaijanian character set.

Getting formatted string from NSTextView

I am creating an OSX app with NSTextView inside NSScrollView. Using the FormatMenuItem I can modify the text in that NSTextView to Bold, italic etc. But when I get the values using (NSTextViewOutlet.String) I cannot get the modified string, that is the string contain bold and italic characters.
By using below code solve my problem.and i use NSTextField instead of NSTextView.
let str = txt_outlet.attributedStringValue

How to set bold to a label without disturbing the font size and family names?

I want to set the selected label to appear bold without implementing the font family-bold version.
Ex:-
the default way to set bold is as follows
UIFont *myFont = [UIFont fontWithName:#"Helvetica-BoldOblique"
size:[UIFont systemFontSize]];
But i want to change the font weight(i.e BOld, Italic or Underline) only. without calling the "fontWithName".
Thanks in advance
You are out of luck. For non-system fonts, you have to use fontWithName to get to the bold version. From the documentation of UIFont:
fontName
The fully specified name of the font. This name incorporates both the font family name and the specific style information for the font.
Possible workaround:
So, while you cannot have a generic method that would switch every font to bold, you could still implement this by maintaining a set of string constants that you can look up to switch to the correct bold version of the fonts you are using in your app.
I recently wrote a blog post about that topic.
You can see it at http://eclipsesource.com/blogs/2012/07/26/uifont-from-a-css-definition/
With the code I provide there, you can get your desired UIFont as easy as:
UIFont *myFont = [FontResolver fontWithDescription:#"font-family: Helvetica; font-weight: bold; font-style: italic;"];
If you want the system font (Helvetica Neue), you can use boldSystemFontOfSize:. Otherwise you're stuck specifying bold in the font name. See the UIFont reference for details.
labelName.font=[UIFont boldSystemFontOfSize:[UIFont systemFontSize]];
Use this statement it will help you

how to apply 2 text styles to a label in iphone

i have a tableview. in cell i am displaying some string data from xml.
in that string some italic tags and some normal tags r there.
but when i try to display the entire string it is displayed in normal text and not getting italic text.
i tried by taking 2 labels one with italic text and another with normal text and appending these 2 labels but i am getting entire string as italic.
how can we apply 2 styles in a label
Thanks in advance
Currently, the UILabel control does not support "rich text." You cannot have some text italic and some normal in the same UILabel.
Three20 has a label that supports this, however:
http://api.three20.info/interface_t_t_styled_text_label.php