Asian text [Solved]
Hello,
Mac OSX 10.10.1, Noesis 1.2.0b8 (r5264)
First couple of questions:
1. I need input & display english & korean text. To test I made copy of TextBox.xaml and changed TextBox Text to "Growing size 국산".
failed - shows garbage, then try to change font:
failed - font not found (I expected it will try to find system font).
I copied ALL Arial*.ttf to Font subdirectory of samples and changed FontFamily="#Arial" to FontFamily="Fonts/#Arial"- font found, but still show garbage.
So I try to change to unicode font:
failed - Arial Unicode not found (but sure I have 'Arial Unicode.ttf' in Fonts folder)
And also when I type Korean characters, every key press produce ? (usually 2-3 keys should be combined to one character)
2. Noesis XAML Player doesn't support resize window. It shows garbage on the bottom of window and top menu disappears. Also mouse pointer doesn't match UI elements. This happens only with vertical resizing. Horizontal is OK.
https://drive.google.com/file/d/0B44o9H ... sp=sharing
3. Would be good to see native application menu in Noesis XAML Player with options and "Quit".
Thank you
Mac OSX 10.10.1, Noesis 1.2.0b8 (r5264)
First couple of questions:
1. I need input & display english & korean text. To test I made copy of TextBox.xaml and changed TextBox Text to "Growing size 국산".
Code: Select all
<TextBox x:Name="NoWrapText" HorizontalAlignment="Left" VerticalAlignment="Top"
Text="Growing size 국산"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Width="{Binding SelectedItem.Content, ElementName=BoxWidth}"
TextWrapping="{Binding SelectedItem.Content, ElementName=WrapText}"
AcceptsReturn="{Binding IsChecked, ElementName=AcceptsReturn}"
AcceptsTab="{Binding IsChecked, ElementName=AcceptsTab}"
IsReadOnly="{Binding IsChecked, ElementName=ReadOnly}"
MinLines="{Binding Value, ElementName=MinLines}"
MaxLines="{Binding Value, ElementName=MaxLines}"
MaxLength="{Binding Value, ElementName=MaxLength}"
/>
Code: Select all
<TextBox x:Name="NoWrapText" HorizontalAlignment="Left" VerticalAlignment="Top"
Text="Growing size 국산"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Width="{Binding SelectedItem.Content, ElementName=BoxWidth}"
TextWrapping="{Binding SelectedItem.Content, ElementName=WrapText}"
AcceptsReturn="{Binding IsChecked, ElementName=AcceptsReturn}"
AcceptsTab="{Binding IsChecked, ElementName=AcceptsTab}"
IsReadOnly="{Binding IsChecked, ElementName=ReadOnly}"
MinLines="{Binding Value, ElementName=MinLines}"
MaxLines="{Binding Value, ElementName=MaxLines}"
MaxLength="{Binding Value, ElementName=MaxLength}"
FontFamily="#Arial"
/>
I copied ALL Arial*.ttf to Font subdirectory of samples and changed FontFamily="#Arial" to FontFamily="Fonts/#Arial"- font found, but still show garbage.
So I try to change to unicode font:
Code: Select all
<TextBox x:Name="NoWrapText" HorizontalAlignment="Left" VerticalAlignment="Top"
Text="Growing size 국산"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Width="{Binding SelectedItem.Content, ElementName=BoxWidth}"
TextWrapping="{Binding SelectedItem.Content, ElementName=WrapText}"
AcceptsReturn="{Binding IsChecked, ElementName=AcceptsReturn}"
AcceptsTab="{Binding IsChecked, ElementName=AcceptsTab}"
IsReadOnly="{Binding IsChecked, ElementName=ReadOnly}"
MinLines="{Binding Value, ElementName=MinLines}"
MaxLines="{Binding Value, ElementName=MaxLines}"
MaxLength="{Binding Value, ElementName=MaxLength}"
FontFamily="Fonts/#Arial Unicode"
/>
And also when I type Korean characters, every key press produce ? (usually 2-3 keys should be combined to one character)
2. Noesis XAML Player doesn't support resize window. It shows garbage on the bottom of window and top menu disappears. Also mouse pointer doesn't match UI elements. This happens only with vertical resizing. Horizontal is OK.
https://drive.google.com/file/d/0B44o9H ... sp=sharing
3. Would be good to see native application menu in Noesis XAML Player with options and "Quit".
Thank you
Last edited by ksubox on 04 Feb 2015, 04:19, edited 1 time in total.
Re: Asian text
We do not load system fonts by default to avoid using resources that may be not present in different machines or platforms. But you could implement your own ResourceProvider that does that.failed - font not found (I expected it will try to find system font).
The problem is that the font name is probably not "Arial Unicode" but "Arial" (filename and font name are different things. Just double click on the the .ttf to discover the name of the font you are using).failed - Arial Unicode not found (but sure I have 'Arial Unicode.ttf' in Fonts folder)
Are you using OSX? I would say that we have a bug in the window implementation. It is not critical because it only affects XamlPlayer, when you integrate noesisGUI with your application you are in charge of providing the input yourself.And also when I type Korean characters, every key press produce ? (usually 2-3 keys should be combined to one character)
Could you report it please? (You need to create an account at http://bugs.noesisengine.com/)
Strange, does not happen here. Could you also report it and attach the noesis.log filename?2. Noesis XAML Player doesn't support resize window. It shows garbage on the bottom of window and top menu disappears. Also mouse pointer doesn't match UI elements. This happens only with vertical resizing. Horizontal is OK.
https://drive.google.com/file/d/0B44o9H ... sp=sharing
Do you mean having for example this sample in c++?3. Would be good to see native application menu in Noesis XAML Player with options and "Quit".
Thanks.
Re: Asian text
Thank you.
I submitted one bug & one tweak.
As for display font - you were right: even file name was "Arial Unicode.ttf", real font name was "Arial Unicode MS". So now display is OK.
I submitted one bug & one tweak.
As for display font - you were right: even file name was "Arial Unicode.ttf", real font name was "Arial Unicode MS". So now display is OK.
Re: Asian text [Solved]
Thanks a lot for the reports. They will be fixed in b9.
Who is online
Users browsing this forum: Google [Bot] and 3 guests