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

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

[Octave-bug-tracker] [bug #33118] text rotation fails for angles other t


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #33118] text rotation fails for angles other than 90 deg
Date: Wed, 20 Apr 2011 07:34:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20110323 Iceweasel/3.5.16 (like Firefox/3.5.16)

Follow-up Comment #3, bug #33118 (project octave):

I think FLTK can draw rotated text with fl_rotate and fl_draw.

I stepped through the code and found in 
txt-eng-ft.cc:394:ft_render::render (text_element* elt, Matrix& box, int
rotation) a switch for ROTATION_0, ROTATION_90, ROTATION_180 and ROTATION_270

All values outside x*90 are mapped to ROTATION_0 in
ft_render::rotation_to_mode (double rotation) const.

I'm really not familiar with the octave internals but it seems to me like the
text gets rendered with freetype and the fltk functions only draw the
resulting bitmap in 
opengl_renderer::render_text
gl-render.cc:2992: glDrawPixels (bbox(2), bbox(3),           GL_RGBA,
GL_UNSIGNED_BYTE, pixels.data ());

btw: If I want to compile octave-dev with debugging symbols, what is the
prefered way? Now I made a
../octave/configure --enable-shared --disable-static
make CFLAGS="-O0 -ggdb" CXXFLAGS="-O0 -ggdb"

is this sufficient?
Andy

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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