|
From: | Michael Goffioul |
Subject: | Re: GSoC project - LaTeX/TeX |
Date: | Wed, 10 Jul 2013 20:21:40 -0400 |
So text rendering part should be modified. There should be DISPATCH MECHANISM changing
renderer depending on interpreter property.1. ft_renderer ( default / fixed text renderer )Renders text and stores data to pixels value od text_object.This rendering is happening in text-eng-ft file. After renderingis finished text_object is pushed to opengl_render (who isrendering final plot) and use data in pixels value to drawimage of text on plot.2. latex_renderer ( will be picked when interpreter is set to "latex" )It push string to TEX file, then converts it to DVI file and so on...As result of this renderer we will have text_object with image inpixels value and already calculated bounding box. Then it just shouldbe pushed to OpenGL trough draw_text method.Latex rendering is needed for text and axes so maybe is bestto integrate this dispatch mechanism into graphics.cc . As I see itif there is freetype library text_renderer is defined. So if interpreteris set to "latex" it should be using latex render. All methods workingwith ft_renderer wont be needed.Am I developing this plan in right direction?
[Prev in Thread] | Current Thread | [Next in Thread] |