Skip to content

fix(platformApi): fix wrong expression for extracting the font size#968

Merged
plainheart merged 2 commits into
masterfrom
fix-measure-text
Nov 13, 2022
Merged

fix(platformApi): fix wrong expression for extracting the font size#968
plainheart merged 2 commits into
masterfrom
fix-measure-text

Conversation

@plainheart
Copy link
Copy Markdown
Collaborator

@plainheart plainheart commented Oct 24, 2022

Fix #947
Fix apache/echarts#17326

The font string might be composed as normal normal 12px sans-serif via the Text#makeFont function. So the ^ and $ should be removed from the expression.

Before After
image image

@plainheart plainheart changed the title fix(platformApi): fix wrong regexp for extracting the font size fix(platformApi): fix wrong expression for extracting the font size Oct 24, 2022
@plainheart plainheart requested a review from pissang October 24, 2022 11:48
@plainheart plainheart merged commit b952ca1 into master Nov 13, 2022
@plainheart plainheart deleted the fix-measure-text branch November 13, 2022 04:42
@zhiqingchen
Copy link
Copy Markdown

hi @plainheart
Is there a plan to publish the changes?

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.

measureText 计算 fontSize 有误 [Bug] Server Side Rendering - Legend spacing does not increase when legend font size does

3 participants