-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document font size units in theme_bw() etc #3458
Labels
documentation
good first issue ❤️
good issue for first-time contributors
help wanted ❤️
we'd love your help!
tidy-dev-day 🤓
Tidyverse Developer Day
Comments
Yes. From the documentation of
Also: library(grid)
g <- textGrob("pQgj", gp = gpar(fontfamily = "Helvetica", fontsize = 11))
convertHeight(grobHeight(g)+grobDescent(g), "pt")
#> [1] 10.3619543457031pt
g <- textGrob("pQgj", gp = gpar(fontfamily = "Times", fontsize = 11))
convertHeight(grobHeight(g)+grobDescent(g), "pt")
#> [1] 9.72039733886718pt
g <- textGrob("pQgj", gp = gpar(fontfamily = "Palatino", fontsize = 11))
convertHeight(grobHeight(g)+grobDescent(g), "pt")
#> [1] 10.7123846435547pt Created on 2019-07-26 by the reprex package (v0.3.0) |
hadley
added
documentation
good first issue ❤️
good issue for first-time contributors
help wanted ❤️
we'd love your help!
labels
Jul 26, 2019
Should be explicit that it's not |
brwheeler
added a commit
to brwheeler/ggplot2
that referenced
this issue
Nov 19, 2019
I used the changes proposed in tidyverse#3458 by explicitly that it's not `mm` and mentioning `.pt`. Also capitalized first letters and added punctuation to be consistent with other text on page.
melimore86
added a commit
to melimore86/ggplot2
that referenced
this issue
Feb 1, 2020
clauswilke
added a commit
that referenced
this issue
May 2, 2020
* updating font size units for #3458 * making an update with correct read lines setting * adding the font size units in issue #3258 * incorporate edit suggestion by @thomasp85. Co-authored-by: Claus Wilke <wilke@austin.utexas.edu>
This has been improved somewhat with PR #3787 but there's probably room for further improvement, so leaving this open. |
What can I do to help document this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
good first issue ❤️
good issue for first-time contributors
help wanted ❤️
we'd love your help!
tidy-dev-day 🤓
Tidyverse Developer Day
I assume they're points?
The text was updated successfully, but these errors were encountered: