We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hi people all... i'm using processing 3. i tried to load a font to write persian texts in text() function... if i set the renderer to p2d or default renderer, everything works fine and words are shown correctly. but if i choose p3d renderer, letters are written seperated (because for persian and arabic language, some letters stick together and form new curves). any idea how to write persian (or arabic) letters with p3d renderers?
Answers
Dunno... maybe use your text() and other related PFont stuff over a separate PGraphics object?
Of course, using a different renderer for that 1, like P2D or JAVA2D. *-:)
https://Processing.org/reference/createGraphics_.html
https://Processing.org/examples/creategraphics.html
Otherwise your last recourse is to post an issue at GitHub: 8-|
https://GitHub.com/processing/processing/issues
Thanks GoToLoop!! that solved it... P2D was the same but java2d solved the problem... and it seems it must be used with createFont(), because loadFont() didn't solve it... thanks again
@nevahid glad you solved it. Would you be willing to share a small code sample to show how you used Java2D / createFont to render RTL / Persian text?
yes jeremy, this is the complete code, i wrote it to use 3d effect (rotateY) on persian text, i used "B Nazanin" font which is installed on my computer:
Made a tweaked version outta that: :ar!
this is a perfect example ;-) bravo :-bd
Very nice.
hi again people... i want to write this program in p5js, as i'm starting to use p5js for web app development... so any suggestion here? and how can i make it a reusable class in p5js? thanks in advance ;-)