Hi all,
Is it possible to create a strip where values print at different font sizes? In my head, I know that using Range Text Box will (probably) work, because it shrinks the text to fit the box defined by DepthTop/DepthBase, however I haven't set it up yet because it requires setting up those headers. Currently I've tried to do the following:
In the pocket pen / pocket torvane column, if the text to be printed is '>4.5' or '<0.2' then shrink the font size by 1 so it fits within the column. I thought that creating two Range Data Text objects with the following formulas would work, however it doesn't because OpenGround only checks the object in the first line of the strip and applies that font size to all objects below.
if((search('>', [InSituHandPenetrometer.HandPenetrometer], 0) >= 0) or (search('<', [InSituHandPenetrometer.HandPenetrometer], 0) >= 0),
'', text(Round([InSituHandPenetrometer.HandPenetrometerValue], 1)))
if((search('>', [InSituHandPenetrometer.HandPenetrometer], 0) >= 0), '>' + text(Round([InSituHandPenetrometer.HandPenetrometerValue], 1)), '') +
if((search('<', [InSituHandPenetrometer.HandPenetrometer], 0) >= 0), '<' + text(Round([InSituHandPenetrometer.HandPenetrometerValue], 1)), '')
Here is a screenshot of the problem occurring.
-------Edit--------
Tried using Range Text Box object. Did not work for the following reasons:
Hi Joseph,
I wonder if adding "TextStyle" to the expression would help. Please see the article linked below:
Text Styling - OpenGround Wiki - OpenGround | gINT | Keynetix - Bentley Communities
Martyn
Hi Martyn,
That won't work. 'TextStyle' doesn't control font size, only color, boldness, italic, and opaque. In that aspect.. I've been meaning to ask, is there an underlined text style? Not to derail this forum post, but I was trying to use underline in this scenario instead of bold: