Forums > Jitter

centering a jit.lcd text ?

Mar 24 2011 | 5:41 pm


I need to center a text dynamically feeding a jit.lcd on the Xaxis (width)
Sentences aren’t the same size.

At first, I tried to do that:
Xposition = (Width / 2. – (Number of characters * size of font) / 2. )

If the logic is ok, I have problems probably with space between letters + the value of "size of font"
Indeed, the fontsize is given in …?
I guess it isn’t event in pixel unit so

any ideas? advices?


Mar 24 2011 | 6:07 pm

did you study jitter recipes, Book 3, patch 28? (attached below)
It doesn’t use the jit.lcd as in your examples, instead it uses openGL and… worth a look in any case!

-- Pasted Max Patch, click to expand. --

Mar 24 2011 | 6:19 pm

I’m quite ok with but I understood that it doesn’t offer unicode for windows.

how can I work with accentuation etc ?
I’ll subtitle in french + spanish so .. accentuation is a must.

I especially used jit.lcd because I believed it was impossible to use accentuation with

can you help me with that?

Mar 25 2011 | 8:56 am doesn’t seem to display my accentuation character BUT maybe it isn’t the unicode limitation…

in that post , I figured out I had problem with jit.lcd too :-/

any ideas/advices?

all the best,

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter