character-map-uwp / Character-Map-UWP

A modern, native UWP replacement for the Win32 Character Map and Windows Font Viewer with flawless high DPI and touch support.
MIT License
623 stars 53 forks source link

Saving Arabic letters in some forms shouldn't have a blank margin #228

Closed Youssef1313 closed 1 year ago

Youssef1313 commented 1 year ago

For example, \uFED4 (Unicode Character 'ARABIC LETTER FEH MEDIAL FORM' (U+FED4)) in Times New Roman font is saved as:

ـفـ

The blank margin in both sides shouldn't be there, I think.

Another example, \uFED2 (Unicode Character 'ARABIC LETTER FEH FINAL FORM' (U+FED2)) in Times New Roman font is saved as:

ـف

The margin at the right is probably correct (not too sure), but on the left there shouldn't be a margin.

JohnnyWestlake commented 1 year ago

Current logic for saving characters is to always save them centered by glyph draw bounds inside a box, it doesn't actually save to glyph bounds themselves (to ensure a consistent size), so at the moment this is "expected". If you want each glyph export clipped to draw bounds (like SVG export does) that's another option that could be considered.