pjanec
Topic Author
Posts: 4
Joined: 12 Feb 2015, 21:46

Japanese fonts "Noto Sans CJK JP" not found

21 Nov 2015, 09:12

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>
 
User avatar
Scherub
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

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

21 Nov 2015, 17:45

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.
 
pjanec
Topic Author
Posts: 4
Joined: 12 Feb 2015, 21:46

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

23 Nov 2015, 09:22

Could please anyone recommend some proven Japanese font working well with NoesisGUI? Thanks in advance.
 
User avatar
Scherub
Posts: 141
Joined: 06 May 2014, 20:53
Contact:

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

23 Nov 2015, 12:44

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.
 
pjanec
Topic Author
Posts: 4
Joined: 12 Feb 2015, 21:46

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

23 Nov 2015, 13:53

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!
 
User avatar
jsantos
Site Admin
Posts: 2900
Joined: 20 Jan 2012, 17:18
Contact:

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

23 Nov 2015, 19:50

We should have provided OTF compatibility since 1.2.0, sorry for that, it will be solved in the next version.

Who is online

Users browsing this forum: ivan.fuertes and 1 guest