Page 1 of 1

Japanese fonts "Noto Sans CJK JP" not found

Posted: 21 Nov 2015, 09:12
by pjanec
I am trying to use japanese fonts but getting a parsing error on FontFamily attribute of TextBlock element. I am using Google's Noto CJK JP fonts. They got imported to Unity as "Noto Sans CJK JP" font names but not found by the parser.

With "Noto Serif" fonts everything works fine.

Unity 4.6.1, NoesisGUI 1.2.5f8

The error is:
[dx11] Assets/JapanFontTest.xaml
Parsing TextBlock.FontFamily (@5,1).
FontFamily 'C:/JapaneseFontsTest/Assets/Fonts/Noto Sans CJK JP' not found
The XAML:
<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	>
	<TextBlock
		TextWrapping="Wrap"
		Text="むかし ある ところ に、 こころ の"
		FontSize="20.0"
		Margin="10,10,0,0"
		FontFamily="Fonts/#Noto Sans CJK JP"
	/>
</UserControl>

Re: Japanese fonts "Noto Sans CJK JP" not found

Posted: 21 Nov 2015, 17:45
by Scherub
In this package are only OpenType fonts which are not yet supported by NoesisGUI. I think they will be in the next version. But that might be the reason why they can't be found.

Re: Japanese fonts "Noto Sans CJK JP" not found

Posted: 23 Nov 2015, 09:22
by pjanec
Could please anyone recommend some proven Japanese font working well with NoesisGUI? Thanks in advance.

Re: Japanese fonts "Noto Sans CJK JP" not found

Posted: 23 Nov 2015, 12:44
by Scherub
Have you tried converting these fonts from .otf to .ttf? I don't know how good these converters work but I would give it a try until the next NoesisGUI version with otf-support ist released.

Re: Japanese fonts "Noto Sans CJK JP" not found

Posted: 23 Nov 2015, 13:53
by pjanec
I tried many online converters, most failing due to file size limitations (the font file is big 16MB), others reporting another problems; few suceeded but the resulting TTF failed during Unity import with message "The font Assets/Fonts/NotoSansCJKjp-Regular.ttf could not be imported because the TrueType name cannot be parsed." Not even FontForge desktop sw worked flawlessly on the first try, same error with TrueType name on import to Unity.

Still looking for a natively-TrueType Japansese font. "osaka_unicode" seems to work fine in NoesisGUI, but not sure whether it supports all the characters - unfortunately I can't read Japanese to check on my own :)

Anyway thanks for your help!

Re: Japanese fonts "Noto Sans CJK JP" not found

Posted: 23 Nov 2015, 19:50
by jsantos
We should have provided OTF compatibility since 1.2.0, sorry for that, it will be solved in the next version.