[Top][All Lists]

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

[Octave-bug-tracker] [bug #31468] multi-line text objects

From: Vanya Sergeev
Subject: [Octave-bug-tracker] [bug #31468] multi-line text objects
Date: Mon, 15 Aug 2011 18:46:10 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1

Follow-up Comment #45, bug #31468 (project octave):

Attached is a patch for txt-eng-ft.cc and txt-eng-ft.h, to add center, right,
and left alignments to the fltk/opengl multi-line text labels. It uses the
same horizontal alignment specified by "halign" passed to text_to_pixels(). It
can be applied on top of my previous txt-eng-ft.cc modifications ( which I
understand are now in the recent hg changeset 22bc9ec80c2c ).

Currently, the horizontal alignment "halign" parameter also moves the whole
pixel box to the left, center, or right (see the halign switch () in
text_to_pixels() ), so things look a little bit unnatural at the moment for
left and right alignments, e.g. for a "right alignment" halign, the entire
label is moved to the right, in addition to the multi-lines being
right-aligned. Things do look natural if the pixel box is anchored in the
center (switch (halign) -> switch (1) in text_to_pixels() to test), and only
the multi-line text is responsible for changes in alignment. But I'm not sure
whose alignment "halign" is precisely supposed to describe.


(file #23810)

Additional Item Attachment:

File name: fltk_multiline_alignment.patch Size:3 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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