Search found 3 matches

by deslua
Wed Mar 09, 2016 4:48 pm
Forum: Support and Development
Topic: Color of colored text not kept by getWrap()
Replies: 3
Views: 1550

Re: Color of colored text not kept by getWrap()

I ended up making a function that behaves like getWrap but for colored text. I really think a function like this should be added to a future version of LOVE! function getColoredWrap(font, ct, width) local wt = {} -- wrapped text local ctTable = {} -- to be filled out and returned local ctRest = {} -...
by deslua
Tue Mar 08, 2016 7:43 pm
Forum: Support and Development
Topic: Color of colored text not kept by getWrap()
Replies: 3
Views: 1550

Re: Color of colored text not kept by getWrap()

Nixola wrote:Printf wraps text on its own, no need to use getWrap.
Sure, but I only want to print certain lines of the colored text. Like:

Code: Select all

printFromTo(coloredtext, width, onlythisline, x, y)
by deslua
Tue Mar 08, 2016 4:50 pm
Forum: Support and Development
Topic: Color of colored text not kept by getWrap()
Replies: 3
Views: 1550

Color of colored text not kept by getWrap()

Hey! :) In 0.10.0 colored text got introduced to be easily drawn using love.graphics.printf . I want to print colored text line by line and do this using font:getWrap . But apparently this function does not keep the color of the colored text! Here is an example. The left and right block of text shou...