-
Notifications
You must be signed in to change notification settings - Fork 8
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
allow FTFont in TextConfig(font=...) #202
Conversation
Thanks!!
I guess we can store an |
Co-authored-by: Rafael Schouten <[email protected]>
We could, but as you said,
Looks like how they are going to solve JuliaGraphics/FreeTypeAbstraction.jl#67, so no need here ? |
Yes, it would be better, but from that conversation I guess I'm not sure if/when that will happen. You may need to read "they" as @ederag, as Simon is pretty busy... if you have time to make those changes I'm sure people would be happy with them. |
About FreeTypeAbstraction, the best course of action is unclear to me, later then. This PR could be ready to review. Next step would be to make |
Sorry I forgot about this (please bug me about things if I do). I think we can just merge this. But |
Thanks, there was no hurry, and I did not want to disturb you; you were making great contributions with the TTFX stuff 🙂
Good, thanks for the go-ahead.
Exactly. Done in #207. |
You might find DynamicGridsInteract.jl |
As discussed in #194, with this PR,
TextConfig
accepts also anFTFont
, bypassing thefindfont
call.This would also allow to do
using FreeTypeAbstraction; font = findfont("Cantarell")
once,and feed that to all
font=
kwargs.Also, later
autoconf
could return anFTFont
instead of aString
, saving onefindfont
call.Two questions:
savefig
is a bit faster (14s instead of 21s here), but there are still severalautoconf
calls.For another PR, or would you rather treat all font issues at once ?
Two specific
TextConfig
tests are intest/image.jl
.If more are to be added, should they all be in a new
test/textconfig.pl
file ?