-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Replace textsize
with fontsize
everywhere
#2387
Conversation
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(display(fig))
|
add breaking tag for this PR? |
Will this be merged into 0.18.4 with the Rich Text PR? |
This should go into a new breaking version with rich text, so probably 0.19 |
* remove textsize for fontsize everywhere * add previous fontsize to test * fix one more text test
Description
We had both
textsize
andfontsize
in use for quite a while, which was always confusing.With this PR,
textsize
is removed everywhere.I've added error messages in two central places, plot recipes and Block creation functions, which should catch all uses of the keyword and prompt users to search and replace. With that, migration should not take more than a few seconds so I believe this breaking change is worth it in terms of API clarity.
We can discuss if the error policy is too drastic because it will also apply to user-defined recipes and Blocks. However, I'd argue that it's an improvement for the ecosystem if all uses of
textsize
are purged, unless we want it to stick around as a ghost for years.The PR also makes
text
inheritfontsize
from the main theme setting by default, which it arguably should have done for a while.Type of change
Checklist