|
|||||||||||||||||||||||||||||
|
|
It's impossible to get the fixedLineSpace of a text member if the line space was set to default. What gets returned is 0 doesn't help. This script will return the default fixedLineSpace value so that you can then use it for whatever purposes. This works great for making an advanced text editor. All you need to do is pass it a member and a character (preferrably the character the selection carat is on or the first value of the selection property). For example: theSel = member("text").selection defaultLineSpace = getDefaultFixedLineSpace(member("text"), theSel[1] + 1)
|
|
|