octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57352] text height for blank line is not the


From: Rik
Subject: [Octave-bug-tracker] [bug #57352] text height for blank line is not the same as for a line with text
Date: Tue, 3 Dec 2019 17:26:23 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <https://savannah.gnu.org/bugs/?57352>

                 Summary: text height for blank line is not the same as for a
line with text
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 03 Dec 2019 02:26:21 PM PST
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

When there are multiple lines in a text() command, Matlab uses the same
vertical spacing for every line.  Octave seems to inspect each line and use a
different vertical spacing based on the characters present (characters with
descenders or CAPITAL letters will have different heights).

Sample code is attached


## '[]' should create a newline with same height as regular line
clf;
text (.3, .8, {"Hello", 'world', [], 123}, 'fontsize', 20)
text (.5, .8, {"Hello", 'world', 1, 123}, 'fontsize', 20)


The resulting plot is attached as well.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 03 Dec 2019 02:26:21 PM PST  Name: tst_text_rowheight.m  Size: 187B 
 By: rik5

<http://savannah.gnu.org/bugs/download.php?file_id=47986>
-------------------------------------------------------
Date: Tue 03 Dec 2019 02:26:21 PM PST  Name: rowheight.png  Size: 23KiB   By:
rik5

<http://savannah.gnu.org/bugs/download.php?file_id=47987>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57352>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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