informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Better alignment/spacing/margin for the watermark #109

Open RFSH opened 1 year ago

RFSH commented 1 year ago

We should see if we can adjust the watermark and make it look better. The current version needs more spacing around the text, and its alignment should be adjusted a bit so it's in the center of its bounding box.

I tried to adjust it quickly, but it required more thought and adjustments, so I created this issue. Using a watermark like SMITE or RBK (all caps) will show the issues.

Adding ctx.textBaseline = "middle"; helps in some cases but break in cases like gudmap.org.