Skip to content

Conversation

@scottrules44
Copy link
Contributor

Custom Font seems to position themselves weird on certain browsers

Here is the building with Corona-3725
Chrome top left, Safari top right, Firefox bottom right
Screenshot 2025-10-25 at 9 47 25 PM

There is fix
Safari top left, Firefox top right, Chrome bottom right

Screenshot 2025-10-25 at 9 42 31 PM

@kan6868
Copy link
Contributor

kan6868 commented Oct 28, 2025

image

I think this needs to be looked into. (I mean the white dots at the end of the text)

Before the above change it didn't exist.

@scottrules44
Copy link
Contributor Author

scottrules44 commented Oct 30, 2025

@kan6868 pushed fixes for this
Screenshot 2025-10-29 at 11 24 50 PM

^ note not all windows are same size :)

@kan6868
Copy link
Contributor

kan6868 commented Oct 30, 2025

Nice, LGTM!

ctx.textBaseline = 'alphabetic'; // safer baseline across browsers

// measure proper font metrics for vertical alignment
var testMetrics = ctx.measureText("Mg'");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh... sure

@scottrules44 scottrules44 merged commit f09b814 into master Nov 4, 2025
29 checks passed
@scottrules44 scottrules44 deleted the html-text-positioning branch November 4, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants