Unity - Displaying Burmese (Zwagyi) text - unity3d

We're currently developing a game in Unity (2019.4.28f1). This game is played internationally. We'd like to add support for languages other than common Latin written languages. Currently, we're trying to implement support for Burmese, but aren't making much progress.
Finding fonts to display Burmese isn't a big issue. As you can see in the image below, we manage to display all characters that are supposed to be displayed.
However, the big problem here is that the displayed order of symbols isn't the same as what it's supposed to be (see image below for the desired result).
We've tried several fonts that use either Unicode or Zwagyi encoding, but none of them seem to display characters in the correct order. Currently, we're using a padauk font from here, which is supposedly Unicode encoded. Then, within Unity, we applied to following settings to that font:
So, if one of you knows more about this and can share some information with me, that would be much appreciated!
Thanks.

We've already found a solution for this! Before setting the text of the text component convert the Unicode codes to Zwagyi and it'll display the text in the correct order!
All the credits go to this guy who put in the effort to make a tool for these use cases!
Of course, you still need a (Unicode) font that supports these (Burmese) symbols.
Example:
Text textComponent = GetComponent<Text>();
textComponent.text = mmfont.Net.Converter.Uni2ZG(yourUnicodeText);

Related

How to build a font generator in iOS Swift and allowing pasting to clipboard

I'm now building a listview to display fonts from the UIFonts framework. However, for using UIPasteboard.general.string, the fonts are not copied to the clipboard and only the plain text is transferred.
I've tried including the MobileCoreServices framework and use kUTTypeRTF to implement it. But there is no detailed documentation on it.
May I know how can I build a custom font list and allowing the text be selected and pasted with its font styling onto the other applications (like Notes or Facebook post), just like the font generator hosted online?
I'm now working on the two following UIFonts, but I'm not able to keep its formatting while pasting from the clipboard.
let fonts: [String] = ["BodoniSvtyTwoOSITCTT-Book", "ChalkboardSE-Regular"]
You cannot copy-paste text with a font on your iPhone.
FancyLetters also cannot do this. It just shows you characters that look like they are printed.
For example, the letter "A" has variations: "𝓐", "𝒜", "𝔸". But this is not font-altered text, StackOverflow does not allow it either. These are characters from Unicode table. They are the same characters as "A" or "B", except that without special modifiers the keyboard will not print them for you, e.g. SHIFTOPTIONK = .
Any font is superimposed over Unicode characters.
I recommend you to read an excellent article Emoji under the hood. It's about how emoji are drawn on devices, but it also explains a lot about the construction of characters and how they are rendered on different devices.
Or font generator also cannot do this. It just shows you characters that look like they are printed

Unity3D doen't see kazakh language letters

I'm new developer in Unity3D. When I write kazak language letter like ҚӨӘІҢ Unity shows ????? What I need to do? If I get data from json it will be shown correctly.
You need to add a custom font and use that as the default font probably doesn't support those characters.

iTextSharp embeded fonts issue when converting to text

It's obviously very easy to render text from PDF doc using PdfTextExtractor.GetTextFromPage. However when dealing with PDF created with embedded fonts I immediately stumbled into encoding issues.
Is there a generic method that will handle whatever font since i dont have any control on how pdf is created. My task is simple - convert pdf to text.
I've obviously searched for days before posting but could not find answer.
Thank you in advance!
ER

How to display Chinese in plot's label

How to display Chinese in plot's label
我是英文版64位win7系统,在matlab中的命令行和文件中可以输入中文,但是保存再打开之后中文就变成“???”了。然后在plot里面xlabel中也无法使用中文,画出来的图片上就是“???”。
请问怎么才能在MatLab中使用中文?
Have you Googled yourself? Try https://www.google.com/search?q=MATLAB%20%E4%B9%B1%E7%A0%81. Basically you need to use an appropriate font, depending on which OS and MATLAB you use.
You can either directly use Chinese font (such as SimSun 宋体) or properly configure font linking in registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FontLink\SystemLink). I wrote some articles about this in ThemeX forum. Pay a visit.

Cocos2d Font Extensions Issues

Good afternoon, sports!
I have a fast doubt.
I'm using COCOS2D and i need to know if i can use other extension type of font other than ".fnt".
Because i used a few and didn't have any luck.
I'm using this piece of code to make a "credits" scene:
CCBitmapFontAtlas* l_026 = [CCBitmapFontAtlas bitmapFontAtlasWithString:#"Look for our apps in the AppStore" fntFile:#"fission.fnt"];
If it isn't which can i use?
And it is do you know any font converter to change "normal fonts" to ".fnt"
Thanks!
The best font program in my opinion is: Glyph Designer. It is inexpensive and very easy to make great looking fonts.
I use CCLabelBMFont but I'm pretty sure it is basically the same thing.
If you have some cash to spend you can use Glyph Designer as suggested by Aaron. But you can also use a free Java tool named Hiero. You might have to do some tweaking to get the result you want though.
The tool will output 2 files: one .png and another .fnt. Add these files into your Xcode project and use it using simple lines like below:
CCLabelBMFont *some_label = [CCLabelBMFont labelWithString:#"Your Text" fntFile:#"fontfile.fnt"];
Do note though that the size of the font from each pair of fnt/png files is fixed, so you have to create multiple pairs if you want to have different font sizes. Also, you need separate pair for Retina and non-Retina display modes.