-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
I am trying to draw text to a label and rotate it. I also want to give the rotated text a background. I found this function:
Cesium.writeTextToCanvas() which does this, except it always appends whitespace to the beginning of the word leaving an ugly 'padding'. In the sandcastle, I have illustrated this behaviour by creating two examples, one with a single character '3' and a longer word, both with this whitespace appended.
What I would expect to happen: I expect that the background (in the sandcastle, rendered as blue) would be the same length as the word that you enter and not any longer/shorter.
Browser: Chrome Version 120.0.6099.109 (Official Build) (arm64)
Operating System: MacOS Ventura 13.4 (22F66)
Metadata
Metadata
Assignees
Labels
No labels

