View Issue Details

IDProjectCategoryView StatusLast Update
0004466NoesisGUIStudiopublic2025-10-30 11:08
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeveritytrivial 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004466: Element Bounds Don't Account for Italic/Oblique Text
Description

Very, very minor one, but currently, it appears as though fonts set to the Font Style 'Oblique' don't affect the physiscal bounds of the TextBlock's bounding box.

This can result in imprecise alignment of Elements in some cases.


Repro Steps:

1) Create a Project containing a MainPage.xaml

2) Create a Grid Element set to Horizontal and Vertical Alignment 'Center'

2) Create a TextBlock in a Font that has an Oblique (/Italics) option. (My issue occured with Libre Bodoni if you want to repro: https://fonts.google.com/specimen/Libre+Bodoni)

3) Type a string that ends with an 'f' (for example "TextBlof" works well)

4) Set the Font Style to Italic or Oblique.
Observe how the Oblique-ness of the 'f' character visually just pushes it outside of its bounding box.

Expected Results: The physical space/geometry of an oblique character is accounted for in the constraints of its bounding box. (See attached Illustrator sample for comparison)

Attached Files
ObliqueText.jpg (326,203 bytes)
PlatformAny

Relationships

related to 0001568 resolvedsfernandez Italic fonts have incorrect bounds 

Activities

sfernandez

sfernandez

2025-10-29 19:45

manager   ~0011300

This is a known thing that happens with WPF too. The following xaml renders like the attached image below in Blend:

<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
           FontFamily="Noto Serif" FontSize="100" FontStyle="Italic"
           Background="Pink" Text="Blof" />

This happens because the font metrics report an advance for the letters that don't correspond to the glyph bounding box, because consecutive glyphs overlap their bounding boxes. And the text size is calculated based on those metrics.

italicbbox.png (11,627 bytes)   
italicbbox.png (11,627 bytes)   

Issue History

Date Modified Username Field Change
2025-10-29 15:18 dstewart New Issue
2025-10-29 15:18 dstewart File Added: ObliqueText.jpg
2025-10-29 15:18 dstewart File Added: ObliqueText_Illustrator.jpg
2025-10-29 19:38 sfernandez Assigned To => sfernandez
2025-10-29 19:38 sfernandez Status new => assigned
2025-10-29 19:38 sfernandez Target Version => Studio_Beta
2025-10-29 19:45 sfernandez Note Added: 0011300
2025-10-29 19:45 sfernandez File Added: italicbbox.png
2025-10-30 11:08 jsantos Relationship added related to 0001568