Japanese fonts "Noto Sans CJK JP" not found
Posted: 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:
The XAML:
With "Noto Serif" fonts everything works fine.
Unity 4.6.1, NoesisGUI 1.2.5f8
The error is:
Code: Select all
[dx11] Assets/JapanFontTest.xaml
Parsing TextBlock.FontFamily (@5,1).
FontFamily 'C:/JapaneseFontsTest/Assets/Fonts/Noto Sans CJK JP' not found
Code: Select all
<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>