Search found 8680 matches
- Sat May 04, 2024 2:52 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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...
- Sat May 04, 2024 2:45 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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...
- Sat May 04, 2024 11:20 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: OpenCard to control?
- Replies: 37
- Views: 1490
Re: OpenCard to control?
Well . . .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.
Code: Select all
on OpenCard
send "mouseUp" to button "myButton"
end openCard
- Sat May 04, 2024 10:37 am
- Forum: Off-Topic
- Topic: ChatGPT and LiveCode
- Replies: 33
- Views: 268596
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 ...
- Sat May 04, 2024 10:31 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
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.
- Sat May 04, 2024 10:27 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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...
- Sat May 04, 2024 10:20 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
Well, that certainly works for Bulgarian:
- -
Although 'font retention' does not seem to be there when I open the result in Inkscape:
- -
Let's live dangerously and try a bit of Sanskrit in Devanagari script:
-
- -
Although 'font retention' does not seem to be there when I open the result in Inkscape:
- -
Let's live dangerously and try a bit of Sanskrit in Devanagari script:
-
- Sat May 04, 2024 9:03 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
And this in Inkscape:
- -
So, just to see how far things would stretch I tried this:
- -
And got this in Inkscape:
- -
So, NO, I am sorry, that does not "do it for me".
- -
So, just to see how far things would stretch I tried this:
- -
And got this in Inkscape:
- -
So, NO, I am sorry, that does not "do it for me".
- Sat May 04, 2024 9:02 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
Wondering if the thing took umbrage at my complex font I thought I would try this:
- - -
Using an extremely 'pedestrian' font.
I got this in a browser:
-
- - -
Using an extremely 'pedestrian' font.
I got this in a browser:
-
- Sat May 04, 2024 8:47 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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...
- Fri May 03, 2024 7:09 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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.
- Fri May 03, 2024 5:35 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
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
- Fri May 03, 2024 5:28 pm
- Forum: Off-Topic
- Topic: ChatGPT and LiveCode
- Replies: 33
- Views: 268596
Re: ChatGPT and LiveCode
I apologise.No they are not. I am a LC programmer and i actually tried LC on GPT4.
- Fri May 03, 2024 5:27 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
OK, OK, OK: After 25 "cycles" with ChatGPT 4 I am still getting a line of question marks instead of: - Screenshot 2024-05-03 at 19.25.32.png - I have typed 'Over use of quotation marks" 15 times; each time it has corrected that (but does NOT 'remember'). Tries the same code modifications round and r...
- Fri May 03, 2024 3:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Exporting text to SVG
- Replies: 23
- Views: 1304
Re: Exporting text to SVG
This is obviously "off" as I would expect an SVG file containing text to look something like this: <svg width="201.402" height="76.101" viewBox="0 0 201.402 76.101" xmlns="http://www.w3.org/2000/svg"><g id="svgGroup" stroke-linecap="round" fill-rule="evenodd" font-size="9pt" stroke="#000" stroke-wid...