Forum > Graphics

Graphical text

(1/2) > >>

pascal111:
هل هناكـ أداة من أدوات الـ graphics ما يجعلني أعرض النّص التالي كأحرف رسوميّة وليس كنص عادي؟

google translate:

"Is there a graphics tool that will allow me to display the following text as graphic characters and not as plain text?"


--- Quote ---El pan con la carne es el maestro de la comida.

--- End quote ---

speter:
If you mean can you "draw" text, yes!


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---canvas.textout(10,10,'foo');
The code above will draw the specified phrase on a canvas. If you start a new project and put that code in the form.create function, the phrase will be drawn on the form's canvas.

cheers
S.

VTwin:
Or:

https://wiki.lazarus.freepascal.org/BGRABitmap_tutorial_12

winni:
Hi!

You can rotate the text on the canvas.
Font.Orientation  are 0.1  degrees, so 900 means 90 degrees.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Canvas.Font.Orientation := 900; Canvas.TextOut( 200, 200,  "Upside Down");
Winni

pascal111:

--- Quote from: winni on June 02, 2021, 08:59:14 pm ---Hi!

You can rotate the text on the canvas.
Font.Orientation  are 0.1  degrees, so 900 means 90 degrees.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Canvas.Font.Orientation := 900; Canvas.TextOut( 200, 200,  "Upside Down");
Winni

--- End quote ---

جميل "es hermoso"

google translate:

"Beautiful "es hermoso""

Navigation

[0] Message Index

[#] Next page

Go to full version