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

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

[Octave-bug-tracker] [bug #48567] superscripts spaced incorrectly in tex


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #48567] superscripts spaced incorrectly in text objects (OpenGL toolkit)
Date: Thu, 21 Jul 2016 13:01:16 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #1, bug #48567 (project octave):

Unfortunately, as explained in comment 72 of bug #31468, the approach we use
to display multi-line and tex formatted strings is very fragile.  There are
many reasons (font match - helvetica is non-free so most renderers use
replacement fonts-, kerning, integer divisions in octave and then in the
renderer ...) why the length of a string may not match between Octave and
another renderer.

Our current approach is enough for short strings and powers of 10 in log
plots, but I fear long strings will always be an issue until either gl2ps has
improved text capabilities or Octave implements its own printing system using
cairo/pango or Qt.

The only workaround I know of, if it can be called a workaround, is to use
monospace font "courier"


plot (1:10)
ht = text (2,6, {"This is a very long line with a huge sentence Z^2"},
"fontname", "courier") 
print tmp2.pdf
open tmp2.pdf

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48567>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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