Re: Using Cairo and Pango to scroll text on video
Maarten Bosmans <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CA+CvcKTQi3Ty-Tvu3CL29qTSO7Cy_mb5WinxN3VH5M_MuCAwQQ@mail.gmail.com> |
2012/5/7 <[email protected]>: > I would love to pre-render the text but I think my use case makes it a bit > more complex. > > The video frame is a fixed size ARGB surface which makes sense. However, > the text can > be any size and often much wider than the video image. I imagine this > prevents me from being > able to use 'create similar' since this would be using the video frame's > surface, no? I guess > > I could create a new ARGB image surface using the text dimensions? I you could just be bothered to click the link I provided to you earlier, you would see that the arguments for the cairo_surface_create_similar () function exactly address your concerns. Maarten -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo