octave-maintainers
[Top][All Lists]
Advanced

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

Re: Google Summer of Code - LaTeX processing


From: Michael Goffioul
Subject: Re: Google Summer of Code - LaTeX processing
Date: Mon, 10 Jun 2013 16:51:33 -0400

On Mon, Jun 10, 2013 at 4:49 PM, Michael Goffioul <address@hidden> wrote:
On Mon, Jun 10, 2013 at 4:07 PM, Andrej Lojdl <address@hidden> wrote:
2013/6/7 Michael Goffioul <address@hidden>
On Fri, Jun 7, 2013 at 11:37 AM, Patrick Noffke <address@hidden> wrote:
The problem definitely seems to be with gnuplot, and fltk looks fine to me.

Obviously, the FreeType-based text engine is only used for FLTK, not gnuplot (though some gnuplot terminal might also use FreeType for test rendering).
 
Also, with both gnuplot and fltk, I get this result for the fontname:
figure;h = title('Line 1');get(h, 'FontName')
ans = *
figure;h = title('Line 1', 'FontName', 'Times');get(h, 'FontName')
ans = Times

Why do I get '*' for the default fontname, or how can I determine what
font is being used?

Basically, '*' means use some "system" font.

Michael.
 I apologize for my absence, I had small problems with internet. Fortunately they are resolved. Lectures at our university have officially ended today. Although I had planed to take a exam (English) later, I will take it on Thursday and that would be all regarding my obligation at university. My plan is to redefine project timeline, go through code and solve the bug. Deadline is Saturday. All technical issues related to the Melange are completed.

About multiline text rendering: Michael, you want me to fix this problem with gnuplot not rendering text correctly?

No, this is a gnuplot problem and outside the scope of your project.
 
Or you have something other in mind. I apologize for misinformation, problem is that you first have to choose graphics_toolkit and just then make plots. If you make plot and then change toolkit, add title it don't work properly. It's my fault I simply overlooked this fact.  

I suggested that you had a look at implementing a "line-height" property for text objects that would be translated into a scaling factor for the line height computed in the FreeType-based text rendering engine (and, for that matter, also for the GL2PS print engine). This text engine is *only* used for the FLTK backend, so make sure you do "graphics_toolkit fltk" before testing.

The main idea was to get you familiar with the graphics system and text rendering code that exists in octave. So you would get a better idea of how you can hook LaTeX rendering into the current code case.

This task should not take long, so please ask for direct pointers in the code if you need them. In some previous emails, I think I already pointed to line numbers in txt-eng-ft.cc.

Michael.


reply via email to

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