Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Implausiblyfun
Copy link
Contributor

Currently when a font is generated from a fontgenerator that has fontsize as 0 it will overwrite it with the value of 12 (as per truetype).
However the height method on a font calls the gen referenced(which is a pointer so could change which is interesting in and of itself). At font generation time the size change is only set on the font itself rather than the generator so we return a 0 instead of a 12 prior to this change.

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2022

Codecov Report

Merging #209 (80d3cfd) into master (3325adc) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #209   +/-   ##
=======================================
  Coverage   95.01%   95.02%           
=======================================
  Files         143      143           
  Lines        6344     6346    +2     
=======================================
+ Hits         6028     6030    +2     
  Misses        285      285           
  Partials       31       31           
Impacted Files Coverage Δ
render/font.go 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@200sc
Copy link
Contributor

200sc commented Jun 11, 2022

Will merge after tests pass.

@200sc 200sc merged commit df66d92 into master Jun 11, 2022
@200sc 200sc deleted the fix/emptyfontoptions branch June 11, 2022 15:56
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