Non-ascii characters get ignored in Godot lable text - godot

I was working on a Hello World scene of Godot.
Instead of using "Hello World" as demonstrated in the tutorial, I tried something like "你好世界", but I found that it didn't work. Anything non-ASCII that I typed in the label text input got ignored.
How can I use non-ASCII characters in Godot labels? Or is it supported at all?

The default Label font in Godot doesn't support non-ASCII characters.
You can try to change the font in your Label node to one that supports non-ASCII symbols by picking a font from your computer, or if it doesn't exist on your device, uploading it from some site like Google Fonts.
After choosing the font for your Label node, open the Custom Fonts property in the editor of the node, and create a DynamicFont, and in Font => Font Data press Load and choose your font in the opened window in the file system (.ttf or any another font extension).

Related

Render a custom "symbol font" in the browser

I am working on an application in which I need to support a text box where certain strings are converted to symbols, i.e. custom emoji. The symbols require color and which are not part of any existing emoji set as far as I know. How can this be accomplished?
I looked into making my own font via FontForge and drawing the symbols as svg files. However, so far I have not figured out how to support color.

Is it possible to show a web font's defined missing glyph U+0000 in a web browser? A.k.a. the ".notdef" or "not found" glyph

I'm working on some web font subsets and want to see what my font's notdef / U+0000 character looks like on-screen, in a browser.
I've tried printing known-missing glyphs like è, which every browser (old and new, Mac and Win) shows properly but in a some kind of fallback font.
I've tried printing  but it doesn't show what is defined in my actual custom font. IE11 shows the White Square U+25A1, while every other browser shows the Replacement Character U+FFFD.
Steps to solve:
CSS? Remove all other css font-family fallbacks except my custom font. Result: Does not work.
CSS? Specify unicode-range: U+0000;, does not change anything.
Browser? Can confirm browser behavior is the reason I can't see my fallback glyph. Browser shows serif as default for undefined glyphs.
Question remains: How can I show my font's specific U+0000 / notdef in the browser? Maybe it can't be done? May have to create an extra font and fill it with notdef glyphs?
And why do browsers show  as serif instead of the custom font's definition?
The only way I've found to force-show a font's built-in .notdef glyph is to go to unicode-table.com, click COPY and paste the character into my UTF-8 html.
(||) each print the font's built-in Replacement Character used to replace an unknown, unrecognized, or unrepresentable character. This even applies to fonts as basic as Arial, Times New Roman and Courier + Courier New.
EDIT: Firefox 52-94 will always show it's own built-in .notdef character.

Import glyphs from another font with fontforge

Hi I'm using Inconsolata for powerline font in linux (link 1). Now I want to had some extra symbols. I've successfully added the awesome font symbols from the Inconsolata patched fonts in link 2 to my own copy of Inconsolata for powerline font (i.e. I can successfully copy glyphs to my font and they appear on the terminal).
However when I try to add icons from other fonts, namely the battery icons from Typicons (see link 3) they simply do not appear in the terminal. I've scaled and changed multiple properties but it's always the same.
I'm doing fc-cache -fv and I've checked that if I manually create a glyph it appears after an fc-cache. I'm completely lost here, I'm sure it must be something simple but I've already lost a lot of hours with this and the glyphs never appear in the terminal no matter what I do :-(
Try adding few glyphs from each to a new font file project. If it is a symbol-only font and you don't care/need to follow Unicode assignments, use codepoints for alphabetical characters and numbers.
Generate your file and check for errors. Fix any issues reported by FontForge.
I've discovered the problem. In two words lbearing and rbearing. They must be the same as the other glyphs. The size is also important. Even with a similar lbearing and rbearing if the size of the glyph is too big it will not appear.

What is default fallback font of FoxIt Reader on linux

I'm making a PDF and I don't want to embed fonts inside it.
When I used Tahoma Foxit Reader substituted it for some default font on linux.
What is this font?
What font should I use so the Foxit Reader will not have to substitute font?
Installing fonts is not an option since the Client should be able to view this PDF on linux without having to install some fonts and stuff. Can't embed whole fonts since the PDF grows from 100KB to 1000KB then, can't also embed subset of font because used component doesn't allow it.
I want to know this font since I use EASTERN_EUROPEAN charset for special chars in PDF and when the font is substituted it falls back to some default charset and the special chars are trash. So I guess if I set the font to default fallback one + my charset, it should be ok.
Please someone tell me the default font that is used in Foxit Reader.
Thanks

Flash CS5 - How to change anti-aliasing on all text containers in an animation

Is there a quick way to change all text containers so that the anti-alias setting is "Use Device Fonts"?
I am using Flash CS5, and need to convert about 300 animations, each with 20 or more text boxes, so that they use device fonts. This is necessary so that we can more easily display traditional Chinese characters.
I can go through each text box, change the font to _sans and it automatically switches to Use Device Font - then I don't need to embed the font files. So I tried to use the Find and Replace tool to change the font on all text boxes. It worked fine at changing the fonts, but it did not auto-switch the anti-alias. Any help on this would save hours of work.
Thanks.
Hopefully you're not too far into your work on this one, but there's a new development with CS5 that will help you with just this. It's called the .xfl format, and all .fla's are actually this format, but zipped up. Have a read here for more info: http://blog.theflashblog.com/?p=1986
What this means is you can convert your fla to xfl (or just change the suffix to .zip and unzip as the above article suggests), and do a Find&Replace on all text field font values.
Hope that helps!

Resources