Help with Text Properties.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking to edit a level marker Lisp routine that brings in a block, and two lines of text.
Below is an extract which defines the text properties.
;; -------------------------------------------------------------;;
;; Top Text Properties ;;
;; -------------------------------------------------------------;;
;; Text Height
th1 (getvar 'textsize)
;; Text Style
ts1 "Standard"
;; Text Layer
tl1 "07 Structure Text"
;; Text Colour
tc1 251
;; Text Position Relative to Block Insertion Point
tv1 '(0.20 0.10 0.0)
1.) I need to justify the text Left (currently comes in as Middle-left) - do i also need to add a qualifier like the others th1, ts1, tc1...etc? further up the routine
2.) I need the "Text Position Relative to Block Insertion Point" to adjust based on the Text Height (getvar 'textsize) - for example current position is set up perfect for text height (th) of 0.13
tv1 '(0.20 0.10 0.0) = good for 0.13 th
tv1 '(0.10 0.05 0.0) = would be good for 0.07 th
tv1 '(0.40 0.20 0.0) = would be good for 0.26 th ..... and so on.
That said, if the justification changes from middle-left to left so would the y-axis positioning, by half the th?
tv1 '(0.20 0.035 0.0) = 0.13 th - adjusted for the justification changing
tv1 '(0.10 0.015 0.0) = 0.07 th - adjusted for the justification changing
tv1 '(0.40 0.07 0.0) = 0.26 th - adjusted for the justification changing
Apologies if there's not enough information here. I'm a complete newb to this and have only started editing Lisp files TODAY 😄
Happy to share more of the routine in private via email if you think you can help..
Many thanks,