I have some text in Khmer language: "ចូលប្រើប្រាស់"
When I put that text in a UI Text component and using a Khmer Unicode font (e.g: Content-Regular.ttf), Unity Editor displays like this image:
Is there any way to make Unity Editor and WebGL build display Khmer language properly?
You should use TextMesh pro to create a font atlas, and then you can display any type of text and language as you want in any build.
Here is the link:
Text Mesh Pro in Asset Store
Additionally, you should use Content-Regular.ttf as reference to create the font atlas.
Related
I am using arabic language in tinymce with help of arabic font all it's working properly but i want to allow user to type arabic language i read so many thread it's just gave me solution for RTL ( right to left) and all toolbar and menubar also working RTL but user can't type arabic language in editor they can only type in english please help. Is there any plugin require for arabic language typing.
Thanks in advance
Language Support and Localization in TinyMCE can mean many different things:
To make the TinyMCE UI a different language, take a look at UI language packs:
https://www.tiny.cloud/docs/configure/localization/#language
https://www.tiny.cloud/get-tiny/language-packages/
To set the directionality (left-to-right/right-to-left), look at the directionality configuration option:
https://www.tiny.cloud/docs/configure/localization/#directionality
However to actually enter Arabic text into the TinyMCE editor, the user's computer would have to be properly configured to generate Arabic text. How to do this obviously varies by operating system, and it is not something within the purview of TinyMCE.
I have this problem when insert a image in tinymce editor (images shows like a empty square) ->
tinymce 4.5.5 image vizualize like a small empty square
Are you sure that is an image? It looks similar to the character that represents an unsupported emoji.
If emojis are not rendering correctly in the editor, it is like a text encoding issue, but would require more information to explore and troubleshoot.
When i try to write Georgian characters in unity (example: გამარჯობა) in text field only appear question marks. I use Unity 5.6 on Windows 8.
I think it is a problem of the windows font which uses Unity. Can I change default font for Unity UI?
enter image description here
Can I change default font for Unity UI?
You can also do this from script:
public Font yourFont;
GetComponent<Text>().font = yourFont;
or from the Resources folder:
GetComponent<Text>().font = (Font)Resources.Load("Yourfont");
Just download a Georgian font, import it into Unity and use one of the methods above to apply it to the Text component.
I installed a custom font however, my app runs on two languages. I noticed that the custom fonts work with English but not with non-English. How can I overcome this?
You need to choose a custom font that includes "glyphs" for all of the special characters and punctuation that are needed for the language you are using. If the custom font you have is missing these extra glyphs, then you can either edit the font in a font editor such as Fontographer to add the missing glyphs (this requires drawing them in or copying parts from other letters), or finding a new version of the same font that includes the glyphs you need.
You can see the missing glyphs by opening a font that has these glyphs in the "Font Book" program included with mac os x. Then you can open your custom font and compare the two to see what's missing.
Also keep in mind that you usually need a custom license from the font owner to include fonts in your application.
I know how to use custom fonts to display CCLabels. I also figured out how to localize the Labels. But I am wondering if there is anyway to display the localized text using custom fonts.
For example when I use Arial I have no problems, the chinese fonts appear correctly. But when I use a font not included in XCode such as ARLRDBD.TTF then the chinese characters do not get displayed.
How can I display the chinese characters in ARLRDBD.TTF too? Or am I stuck with just using the default fonts included in XCode if I plan to use LocalizedString?
Thanks
Abhinav
You should be able to use any font that has Chinese characters in it.
Not all fonts include characters for all languages. Many Western fonts only have the Roman alphabet (A-Z).
You could either use a font that has all the characters you will need (like Arial, or another Unicode font - see: http://en.wikipedia.org/wiki/Unicode_typeface), or have separate fonts for each language.
I'd suggest a different font for each language.
You could keep it organized with a simple struct.
typedef struct {
NSString *regionname;
NSString *fontname;
} RegionFont;
//later in the code....
RegionFont some_region;
some_region.regionname = #"China";
some_region.fontname = #"Arial";
You can test if a font supports a given language by opening Font Book (standard Mac app) and searching under "All Fonts" for the language you want.
I don't have many custom fonts installed and several with Chinese support come up.
Hope this helps.
You can use custom fonts in your app but you need to make the system aware that they exist using the UIAppFonts key in your Info.plist file. See here for more information.