Hanging from the washing line.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Hanging from the washing line.
So: here I am working on my totally immortal Devawriter Pro[/b] and implementing Grantha script triple stacking.
This involves using a series of ever-diminishing glyphs lower and lower down the staff. To best explain this it is best illustrated
by a snapshot from the font-editor:
[attachment=1]stacker.png[/attachment]
Now, when my Devawriter script assembles those 3 components an pops them into the display field it cuts the thing's bottom off:
[attachment=0]tripeSec.png[/attachment]
I wonder how I should "twiddle" with the line size (?) to get the thing to display everything?
This involves using a series of ever-diminishing glyphs lower and lower down the staff. To best explain this it is best illustrated
by a snapshot from the font-editor:
[attachment=1]stacker.png[/attachment]
Now, when my Devawriter script assembles those 3 components an pops them into the display field it cuts the thing's bottom off:
[attachment=0]tripeSec.png[/attachment]
I wonder how I should "twiddle" with the line size (?) to get the thing to display everything?
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Hanging from the washing line.
Did you already try to use the formattedHeight of <chunk> (and then setting the textheight)?
Connected to that (scroll down there, it's not only for LCB):
http://quality.livecode.com/show_bug.cgi?id=18258
Connected to that (scroll down there, it's not only for LCB):
http://quality.livecode.com/show_bug.cgi?id=18258
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hanging from the washing line.
No: I hadn't.
If I type: put the formattedHeight of fld "fRESULT" (that's my display field) I get 94,
if I then set the textHeight of the fld to 94 this does NOT help; so where am I going wrong?
I wonder, slightly, if the descender setting in the original font needs resetting using a font editor.
NOPE: just changed the descender from -1000 to -2000 with no visible difference in LiveCode.
If I type: put the formattedHeight of fld "fRESULT" (that's my display field) I get 94,
if I then set the textHeight of the fld to 94 this does NOT help; so where am I going wrong?
I wonder, slightly, if the descender setting in the original font needs resetting using a font editor.
NOPE: just changed the descender from -1000 to -2000 with no visible difference in LiveCode.
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Hanging from the washing line.
I have a few fonts where LC formatted-things reports wrong values: it's always too less, never too much.
In that case I enlarge the formattedHeight by a factor (depending on the textSize). Usually a factor of 1.2 is large enough for the height.
And then use it for the textheight. I dont change the font.
For changing the width (that depends also a bit on length of the chunk) and then use it for marginLeft and marginRight we have to work harder.
I think your example would be good for adding to the report cited above (or to open a new report).
In that case I enlarge the formattedHeight by a factor (depending on the textSize). Usually a factor of 1.2 is large enough for the height.
And then use it for the textheight. I dont change the font.
For changing the width (that depends also a bit on length of the chunk) and then use it for marginLeft and marginRight we have to work harder.
I think your example would be good for adding to the report cited above (or to open a new report).
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Hanging from the washing line.
Using a fixed line height, try setting the spaceBelow of the truncated line to a few pixels. You'll need to experiment to see what number works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Hanging from the washing line.
Concluding from this and other threads Richmond is deep in font metrics and even willing to adjust these.
But it shouldn't be necessary to adjust "manually" (with each main version of LC) originally properly set metrics to the incorrect text measurement of LC.
Hopefully the soon(?) coming fully pledged "Native Field Object" will solve this, at least to a certain degree **.
https://livecode.com/project/infinite-l ... ld-object/
** Edit: This field object is eventually for mobile. But it needs 'abstract' correct text measurement which could be also used for desktop platforms.
But it shouldn't be necessary to adjust "manually" (with each main version of LC) originally properly set metrics to the incorrect text measurement of LC.
Hopefully the soon(?) coming fully pledged "Native Field Object" will solve this, at least to a certain degree **.
https://livecode.com/project/infinite-l ... ld-object/
** Edit: This field object is eventually for mobile. But it needs 'abstract' correct text measurement which could be also used for desktop platforms.
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hanging from the washing line.
Not as far as I can see.You'll need to experiment to see what number works.
https://www.dropbox.com/s/k4q3wsn4ufhdk ... b.zip?dl=0
This ZIP file contains an illustrative field and my Devawriter.ttf font as it stands at the moment (i.e. not final release version).
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Hanging from the washing line.
This font is OK, displays correctly for example in Mac's TextEdit.
But LC cuts the large descenders and would similarly cut large ascenders, no matter the settings of fixedlineHeight, textHeight or spaceBelow/spaceAbove.
Once again: You should report this as bug.
p.s. You have a numToChar(13) in this line. LC doesn't display it, TextEdit does (I removed it for the screenshot, has no influence on the buggy LC display).
But LC cuts the large descenders and would similarly cut large ascenders, no matter the settings of fixedlineHeight, textHeight or spaceBelow/spaceAbove.
Once again: You should report this as bug.
p.s. You have a numToChar(13) in this line. LC doesn't display it, TextEdit does (I removed it for the screenshot, has no influence on the buggy LC display).
- Attachments
-
- Display using TextEdit
- richmondText.png (15.9 KiB) Viewed 12393 times
shiftLock happens
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hanging from the washing line.
Thank you, -hh, for that valuable feedback.
Bug 19040
Bug 19040
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Hanging from the washing line.
See this thread:
http://forums.livecode.com/viewtopic.p ... 9c#p149391
http://forums.livecode.com/viewtopic.p ... 9c#p149391
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hanging from the washing line.
Messing around with spaceBelow ONLY makes more space between lines of text, what it
does NOT do is stop the bottom of the text being cut off.
does NOT do is stop the bottom of the text being cut off.