Page 2 of 4

Re: Bending Text ?

PostPosted: Mon May 20, 2019 12:40 pm
by wlangfor@uoguelph.ca
tulamide wrote:
wlangfor@uoguelph.ca wrote:OK, so working on this and it should be fairly featured.

I'm making sure that everything is vector based so that it is not so difficult to position etc. I was thinking though; Odds are You want this to spin? I guessed based on the image you provided.

If so, I'll either use ruby to make it all spin or I will provide a bitmap saver which is automatic and then which in turn can make it spin at Your desired speed.

It's a nice effect and while I feel trigonometry would be more accurate to effectively decide the plane for other sphere styles at least this can handle square ones. Though perhaps due to to it being vector in nature it would work either way? Assuming I added some extra math I suppose.

Will let You know when it is done.

I'm awaiting it eagerly. A real time font bending engine would be great! With all my knowledge I couldn't find a way to realize it. Only with bitmaps, which of course is too CPU heavy, and negates the purpose of realtime vector drawing. So that will come in handy.


OK, this is how far I have gotten and today i will finish. It comes down to using the circumference of the circle and then a new function which automatically reduces spacing, based upon those values it updates every angle etc.

Seems bulky, but it's designed to make an image afterall.

thanks to MyCo for his angled text label module btw.

Re: Bending Text ?

PostPosted: Mon May 20, 2019 12:42 pm
by wlangfor@uoguelph.ca
lalalandsynth wrote:This will be amazing .

On another note , could something be made that would have a similar effect as the font , "Sharp" "Crisp" etc in Photoshop ? Its very annoying to have the PS fonts and FS fonts be different , namely the FS fonts being fuzzy.

Dont know if its possible , probably not , just thought I would mention this issue.


that's a font subtype, if it was was; it would be through ruby. Arial for instance has a few different renders. There's also the case of gems in ruby. I'm guessing there's a gem which can render that.

I'll look into that.

Re: Bending Text ?

PostPosted: Thu May 23, 2019 3:24 am
by wlangfor@uoguelph.ca
btw, I figured it out. It's a lot easier than I had thought.

Basically maybe You could have a loop assuming it's connected to a module with an mgui inside. Not sure if that's possible; but otherwise multiple module which are turned off and inactive if not within the range of the automatic letter array count. Ok, so next is choosing the height for them being square.

So, making sure the height for them is exactly 100% of the container and the width is the same each one is rotated based on angle in sequence like a red hot shili peppers logo, or a simple snowflake.

This might even be an idea that would rotate as well. but like photoshop, as You'd mentioned You could always save an image smoothed and unsmoothed and use alpha to mix those 2. Decidedly in different opacity and mixes those might be very similar to PS.

Anyways, I'd been meaning to finish this. I've been working on some pop that I want to eventually add to My portfolio. eventually I want to do soundtracks:

Image

Re: Bending Text ?

PostPosted: Tue May 28, 2019 6:07 pm
by tulamide
Did you give up?

Re: Bending Text ?

PostPosted: Tue May 28, 2019 6:51 pm
by lalalandsynth
As for the text rendering there is the v.setTextRenderingHint for Ruby .

Or like this .
def draw v
# Set alignment
v.setTextRenderingHint @trh

# Draw Background
v.drawRectangle Brush.new(Color.new(255)), @area if @bg

# Draw the label
v.drawString @label, @font, @sf, @area,(Brush.new @color)

end

def event i,v
redraw 0
end

Re: Bending Text ?

PostPosted: Tue May 28, 2019 9:00 pm
by wlangfor@uoguelph.ca
OOh, I'll try it thanks.

lalalandsynth wrote:As for the tect rendering there is the v.setTextRenderingHint for Ruby .

Or like this .
def draw v
# Set alignment
v.setTextRenderingHint @trh

# Draw Background
v.drawRectangle Brush.new(Color.new(255)), @area if @bg

# Draw the label
v.drawString @label, @font, @sf, @area,(Brush.new @color)

end

def event i,v
redraw 0
end

Re: Bending Text ?

PostPosted: Tue May 28, 2019 10:31 pm
by lalalandsynth
Btw , you should plug these string values into the @trh via an index selector or something.

off,singleBitPerPixelGridFit,singleBitPerPixel,antiAlias,antiAliasGridFit,ClearTypeGridFit

Re: Bending Text ?

PostPosted: Wed May 29, 2019 3:23 am
by wlangfor@uoguelph.ca
lalalandsynth wrote:Btw , you should plug these string values into the @trh via an index selector or something.

off,singleBitPerPixelGridFit,singleBitPerPixel,antiAlias,antiAliasGridFit,ClearTypeGridFit


will do :)

Re: Bending Text ?

PostPosted: Mon Jun 10, 2019 12:06 am
by tulamide
Another two weeks, and still no bending of text :(

Re: Bending Text ?

PostPosted: Mon Jun 10, 2019 2:14 am
by wlangfor@uoguelph.ca
tulamide wrote:Another two weeks, and still no bending of text :(


Oh, well I thought this was possible with Ruby? OK, I'll finish this, sorry.