[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55075] text displayed in italic font is clipp

From: Rik
Subject: [Octave-bug-tracker] [bug #55075] text displayed in italic font is clipped on right-hand side (GUI and printing)
Date: Sun, 9 Dec 2018 11:01:17 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063

Follow-up Comment #9, bug #55075 (project octave):

The code for rendering text in gl-render.cc is at line 3702.

    double m = props.get_margin ();
    const Matrix bbox = props.get_extent_matrix ();
    double x0 = bbox (0) / m_devpixratio - m;
    double x1 = x0 + bbox(2) / m_devpixratio + 2 * m;
    double y0 = -(bbox (1) / m_devpixratio - m);
    double y1 = y0 - (bbox(3) / m_devpixratio + 2 * m);

So it appears that the Margin is being correctly added to every side of the
text object.  However, it seems to be measured in pixels in Octave which does
produce too small a result.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]