The html5 canvas have great capabilities to work with any texts even unicodes.
this code shows how to draw any text with
-controling the canvas backcolor and drawing a background backcolor saved with the contents as PNG.(note that the canvas background color is not saved when you export canvas to image).
-Introducing any text and controling its direction (left to right or right to left).Text can be unicode.
the textarea is a wonderfull web control having unicode support.Can copy ,paste any unicode text here (even supporting a big text).
use the standard keys as :CTRL+C (copy) CTRL+X (erase)-CTR+V (paste)-CTRL+A (select all)
-Can adjust the canvas width and height dynamically.
-Can adjust the 5 colors gradients to beautify the text.
-Can adjust the canvas to fit the form and show/hide the textarea.
-Can view the complet web code as a txt file.(infortunatly the unicode text is rendered here as ??? chars.)
-I presented in the code yet another mehod to save the canvas as a png image.
Warning: the button clear document clear all objects contained in.Must restart the application to rebuild it.
Of course all these is possible only with the vfp ie browser emulated (mine as IE11).
can see this article : http://yousfi.over-blog.com/2015/01/who-said-that-vfp-ie-browser-died.html
-The code is shipped in the zip below as a prg and as a visual form in the download link below.
See some screenShots picked from the running application.
All is tested on Windows8.1 only.
Can choose a short text and increase the fontsize up to 72 to see more effect like 3D text.Choose various 3D font is better.
VFP, DOM and Html5 canvas
it seems that my questions about using DOM to make vfp working on html5 canvas are yet unanswered.