View Issue Details

IDProjectCategoryView StatusLast Update
0001289NoesisGUIC# SDKpublic2018-11-21 16:49
Reporterai_enabled Assigned Tojsantos  
PrioritynormalSeveritytrivial 
Status resolvedResolutionfixed 
Product Version2.1.0f1 
Target Version2.2.0Fixed in Version2.2.0b1 
Summary0001289: \r counted as a letter during text formatting/aligning
Description

Hi guys,
just noticed that NoesisGUI counts \r as a regular letter during text aligning.
For example, we have a text block like this:

new TextBlock() { Text = "Hello" + Enviroment.NewLine + "World", TextAlignment = TextAlignment.Center }

(Enviroment.NewLine in .NET Framework is \r\n)
I would expect both words to be aligned by center, however NoesisGUI will align first word a little bit left because it counts \r as a letter similar to space char.

Regards!

Attached Files
PlatformAny

Activities

ai_enabled

ai_enabled

2018-04-12 12:19

updater   ~0005187

In the attached screenshot you can see that the first line of nickname text is aligned a little bit left.
Using \n instead of Enviroment.NewLine resolved the issue.

Screenshot at 17-10-33.png (1,572,837 bytes)
jsantos

jsantos

2018-04-12 17:13

manager   ~0005188

Thanks for the report.

I see the new terrain system in that screen... cool :D

jsantos

jsantos

2018-08-31 15:31

manager   ~0005251

Thanks for this discovery, I fixed it, it was not happening with all fonts.

I hope you get the fix soon :)

Issue History

Date Modified Username Field Change
2018-04-12 12:18 ai_enabled New Issue
2018-04-12 12:19 ai_enabled File Added: Screenshot at 17-10-33.png
2018-04-12 12:19 ai_enabled Note Added: 0005187
2018-04-12 17:11 jsantos Assigned To => jsantos
2018-04-12 17:11 jsantos Status new => assigned
2018-04-12 17:13 jsantos Note Added: 0005188
2018-08-31 15:31 jsantos Note Added: 0005251
2018-08-31 15:34 jsantos Fixed in Version => 2.2.0b1
2018-11-01 02:14 jsantos View Status public => private
2018-11-21 16:40 jsantos Target Version => 2.2.0
2018-11-21 16:40 jsantos View Status private => public
2018-11-21 16:40 jsantos Platform => Any
2018-11-21 16:49 jsantos Status assigned => resolved
2018-11-21 16:49 jsantos Resolution open => fixed