View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004466 | NoesisGUI | Studio | public | 2025-10-29 15:18 | 2025-10-30 11:08 |
| Reporter | dstewart | Assigned To | sfernandez | ||
| Priority | normal | Severity | trivial | ||
| Status | assigned | Resolution | open | ||
| Product Version | Studio_Beta | ||||
| Target Version | Studio_Beta | ||||
| Summary | 0004466: 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. 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 | |||||
| Platform | Any | ||||
| related to | 0001568 | resolved | sfernandez | Italic fonts have incorrect bounds |
|
This is a known thing that happens with WPF too. The following xaml renders like the attached image below in Blend:
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. |
|
| 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 |