Please sign in to comment.
Port font marker away from deprecated API
Note: it's highly likely there's a bug here, and we should be using the (tight)boundingRect of the string here instead of the width/horizontalAdvance. But doing so changes the rendering position of characters substantially, as it means that font markers are properly centered on the actual character itself (otherwise a character like '.' is not placed over the point itself, but rather below it! iThat's the current behavior). We could possibly handle this by only applying the improved positioning to newly created font marker symbols, but that's left for a follow-up work...
- Loading branch information
Showing with 8 additions and 0 deletions.