ksubox
Topic Author
Posts: 7
Joined: 19 Jan 2015, 06:58

Asian text [Solved]

03 Feb 2015, 08:52

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 국산".
			<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}"
				/>
failed - shows garbage, then try to change font:
			<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"
				/>
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:
			<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"
				/>
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
Last edited by ksubox on 04 Feb 2015, 04:19, edited 1 time in total.
 
User avatar
jsantos
Site Admin
Posts: 2909
Joined: 20 Jan 2012, 17:18
Contact:

Re: Asian text

03 Feb 2015, 13:42

failed - font not found (I expected it will try to find system font).
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 - Arial Unicode not found (but sure I have 'Arial Unicode.ttf' in Fonts folder)
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).
And also when I type Korean characters, every key press produce ? (usually 2-3 keys should be combined to one character)
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.

Could you report it please? (You need to create an account at http://bugs.noesisengine.com/)
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
Strange, does not happen here. Could you also report it and attach the noesis.log filename?
3. Would be good to see native application menu in Noesis XAML Player with options and "Quit".
Do you mean having for example this sample in c++?

Thanks.
 
ksubox
Topic Author
Posts: 7
Joined: 19 Jan 2015, 06:58

Re: Asian text

04 Feb 2015, 04:04

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

Re: Asian text [Solved]

04 Feb 2015, 23:59

Thanks a lot for the reports. They will be fixed in b9.

Who is online

Users browsing this forum: Google [Bot] and 1 guest