Search found 8653 matches

by richmond62
Sat May 04, 2024 6:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

However, I have no wish to display SVG images in a browser, I might want to import SVGs as vector objects to use as, say, scaleable icons/buttons.
by richmond62
Sat May 04, 2024 3:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

I have just used this service: https://www.vertopal.com/ to produce an SVG image from my text (which is far, far inferior to what LiveCode is pumping out): - Screenshot 2024-05-04 at 17.23.28.png - Opening that file in a text editor I can see why it is "what it is": " Created by potrace 1.16, writte...
by richmond62
Sat May 04, 2024 3:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

I have downloaded a free SVG image from the internet that CAN be imported into LiveCode: - Screenshot 2024-05-04 at 17.02.57.png - Beetle.svg.zip - Examining that image in a text editor I notice the signal difference between it and my exported SVG image is that it contains this text at the start: <!...
by richmond62
Sat May 04, 2024 2:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

I have a feeling that the SVG parsers in the browser and Inkscape are reading the WIDTH of the image wrongly. - SVG from Text 2.livecode.zip - I am now going to "fool around" with image widths . . . on mouseUp set the width of fld "f1" to ((the formattedWidth of fld "f1") * 1.5) set the height of fl...
by richmond62
Sat May 04, 2024 2:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

I mucked around with the code so that an SVG is exported that is not automatically 800 x 800 pixels: on mouseUp set the width of fld "f1" to the formattedWidth of fld "f1" set the height of fld "f1" to the formattedHeight of fld "f1" set the left of fld "f1" to 40 set the top of fld "f1" to 40 -- pu...
by richmond62
Sat May 04, 2024 11:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: OpenCard to control?
Replies: 3
Views: 54

Re: OpenCard to control?

Of course, I could send "openCard" to the desired controls by "send" or "dispatch" but I don't know which controls should receive this message.
Well . . .

Code: Select all

on OpenCard
      send "mouseUp" to button "myButton"
end openCard
by richmond62
Sat May 04, 2024 10:37 am
Forum: Off-Topic
Topic: ChatGPT and LiveCode
Replies: 33
Views: 267453

Re: ChatGPT and LiveCode

My recent experience with A.I. did not make me think of "reconstituted pork products", it made me think rather more of pot-au-feu , especially the way certain "sausages" kept coming round again and again, and the way that the robot forgot I didn't like "mushrooms" (over use of quotation marks), yet ...
by richmond62
Sat May 04, 2024 10:31 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Screenshot 2024-05-04 at 12.29.18.png
-
Ouch: that is a bit disappointing.

But that problem is NOT, Bernd, with your code, it has more to do with the fact that LiveCode can only adequately render a subset of all SVG files.

Thank you very much indeed for both your help and your forbearance. 8)
by richmond62
Sat May 04, 2024 10:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Screenshot 2024-05-04 at 12.24.35.png - Browser: - Screenshot 2024-05-04 at 12.24.27.png - No 'font retention'. Inkscape: - Screenshot 2024-05-04 at 12.25.18.png - That is wonderful insofar as re both size and font everything looks the way it did in the text field. Now. let's try and import that SV...
by richmond62
Sat May 04, 2024 10:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Well, that certainly works for Bulgarian:
-
Screenshot 2024-05-04 at 12.19.26.png
Screenshot 2024-05-04 at 12.19.26.png (7.24 KiB) Viewed 57 times
-
Although 'font retention' does not seem to be there when I open the result in Inkscape:
-
Screenshot 2024-05-04 at 12.20.30.png
Screenshot 2024-05-04 at 12.20.30.png (6.77 KiB) Viewed 57 times
-
Let's live dangerously and try a bit of Sanskrit in Devanagari script:
-
by richmond62
Sat May 04, 2024 9:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

And this in Inkscape:
-
Screenshot 2024-05-04 at 11.03.09.png
Screenshot 2024-05-04 at 11.03.09.png (4.84 KiB) Viewed 74 times
-
So, just to see how far things would stretch I tried this:
-
Screenshot 2024-05-04 at 11.05.15.png
-
And got this in Inkscape:
-
Screenshot 2024-05-04 at 11.07.09.png
Screenshot 2024-05-04 at 11.07.09.png (6.91 KiB) Viewed 73 times
-
So, NO, I am sorry, that does not "do it for me". :?
by richmond62
Sat May 04, 2024 9:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Wondering if the thing took umbrage at my complex font I thought I would try this:
-
Screenshot 2024-05-04 at 10.57.52.png
-
Screenshot 2024-05-04 at 10.59.40.png
Screenshot 2024-05-04 at 10.59.40.png (42.88 KiB) Viewed 74 times
-
Using an extremely 'pedestrian' font.

I got this in a browser:
-
Screenshot 2024-05-04 at 11.01.31.png
by richmond62
Sat May 04, 2024 8:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

And so: - Screenshot 2024-05-04 at 10.44.35.png - on mouseUp put fld "f1" into tText put fld "fHeader" into tHeader put fld "fTextStart1" into tTextStart1 put the textFont of fld "f1" into fld "fTextStart2" put fld "fTextStart2" into tTextStart2 put fld "fTextStart3" into tTextStart3 put the textSiz...
by richmond62
Fri May 03, 2024 7:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Oh, Bernd: I almost love you: and the thing that prevents that is the frustration I feel from wrestling with a robot for about 4 hours. 8)
by richmond62
Fri May 03, 2024 5:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Exporting text to SVG
Replies: 22
Views: 303

Re: Exporting text to SVG

Cripes: the robot just suggested code containing this:

Code: Select all

   export snapshot from rect (0,0,400,100) of fld "tempField" to file tFilePath & ".svg" as SVG

Go to advanced search