-
Adding Custom Bullet Points to Paragraph Text
I want to add custom bullet points (precomposed graphics) to a dynamic block of text. It’s a template, so the text could be several lines in height and have varying font size and line spacing. The text box will always be anchored top-left.
I realise the sourceRectAtTime expression can find the top left of the block of text but how do I position my graphic to center itself (vertically) to the first line of text (ie. as a bullet point would sit)? Is there a piece of expression code which can grab the font size, so I can use something like:
s = sourceRectAtTime();
l = s.left; t = s.top;
[l, t - FONT SIZE/2]Or, can sourceRectAtTime see the number of lines in a text box, so I can divide up the height and work it out from that?
I can sort out the horizontal position, just can’t work out how to align the graphic vertically when I can’t directly get the font size value.
Simon
EDIT: Sorry, I should have posted in the expressions forum.
Sorry, there were no replies found.