[BZ#547833] Glyphs are cut off when width is not specified
Submitted by Jeremy Smith
Link to original bug (#547833)
Description
Please describe the problem: I'm not sure where this problem originates - rsvg, pango, or freetype - but when using certain fonts, glyphs are cut off if rsvg is allowed to determine the width of the output image.
This is difficult to reproduce without certain fonts. For example, Minion Pro seems to get cut off, but DejaVu Serif does not. I can attach affected fonts if needed, but I am not sure of the legality of this.
Steps to reproduce:
- Create an SVG document with a single text element containing text: "The quick brown fox jumps over a lazy dog"
- Style the text element for Minion Pro, font-weight 600, font-size 29pt
- Render to SVG with rsvg commandline.
Actual results: Resulting PNG file shows final glyph ("g") cut off on the right by about 25%.
Expected results: PNG file is wide enough to accommodate the glyph
Does this happen every time? Yes, with certain fonts
Other information: I filed a similar bug some time ago relating to italic text, which I believe was fixed (but I'm not sure).