Improve livetext effect

Registered by salsaman on 2010-05-04

<salsaman> the task is to improve the livetext effect and generator
<salsaman> here is how i think you should proceed (i will put all of this into a blueprint)
<salsaman> 1) copy the existing effect lives/lives-plugins/weed-plugins/livetext.c to lives/lives-plugins/weed-plugins/gdk/livetext2.c
<salsaman> copying it into the gdk subdirectory should allow use of pango layouts for generating the text
<salsaman> right now it uses bitmapped fonts and draws the fonts manually. This is ugly, so the first task will be to use pango layouts to draw the text
<alex_p> ok
<salsaman> within the plugin you will need to convert a LiVES layer (which is the internal format of a frame) to a gdkpixbuf, render the pango string, and then convert back to a layer
<salsaman> if you look at gdk_fast_resize.c for example, you will see how to do the conversions
<salsaman> once you have done that, part 2) will be to add more parameters, for e.g. font, text position, point size, stroke and fill colour

<salsaman> all of the code will be in the plugin
<salsaman> you dont need to worry about how the parameters look, LiVES will take care of all that
<salsaman> in fact all of the code you need should already be in livetext.c, gdk_fast_resize.c, lives/src/giw/giwvslider.c (for pango) and various other weed plugins (for the extra parameters)

Blueprint information

Status:
Not started
Approver:
salsaman
Priority:
Undefined
Drafter:
salsaman
Direction:
Needs approval
Assignee:
Aleksej Penkov
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.