Skip to content
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

Tutorial on how to create a custom font collection #237

Closed
justintadlock opened this issue Mar 8, 2024 Discussed in #223 · 11 comments
Closed

Tutorial on how to create a custom font collection #237

justintadlock opened this issue Mar 8, 2024 Discussed in #223 · 11 comments

Comments

@justintadlock
Copy link

Discussed in #223

Originally posted by justintadlock February 15, 2024
The Font Library feature in WP 6.5 will include the ability to let plugins/themes register a custom font collection. This would make for a good lightweight tutorial that both showcases the Font Library and shows developers how to extend it. The post just needs to be a walkthrough on "how to do this thing" with code examples and screenshots.

For more information, see: WordPress/gutenberg#57980

If approved, I'm happy to add this to my list of topics, but this might also be a "good first topic" for a new contributor or for anyone who's excited about the Font Library. I'm also good with helping out with code.

CC'ing @matiasbenedetto who worked on this feature and could provide feedback.

@justintadlock
Copy link
Author

Just noting that I'm happy to pick up this tutorial but didn't want to assign myself yet and leave it open for anyone who wants to take it on. It'd be a nice shorter tutorial for anyone who wants something lightweight.

@justintadlock justintadlock self-assigned this Mar 14, 2024
@justintadlock justintadlock removed the flow: needs writer the idea/pitch needs a writer label Mar 14, 2024
@justintadlock
Copy link
Author

I'll go ahead an pick this one up since we didn't have any takers. :)

Draft will be here: https://docs.google.com/document/d/1Gy5jUGQjvqOCsR_eLCqYfKc6cC_ccl77cAUT4picO-M/edit?usp=sharing

@justintadlock
Copy link
Author

The first draft of this one is ready to review at any time.

@bph
Copy link
Collaborator

bph commented Mar 27, 2024

@justintadlock I reviewed it and only had some minor opinionated correction 😄
I also tested the code examples and ran into an oddity... See my comment on the Google Doc.

Other than that, all good

@ndiego
Copy link
Member

ndiego commented Apr 1, 2024

This looks great @justintadlock. I added a few comments to the doc.

@justintadlock
Copy link
Author

Social copy:

WordPress 6.5 has a new Font Library to let users manage their sites fonts, but you can also create curated font collections via themes and plugins. Learn more on the Developer Blog:

https://developer.wordpress.org/news/2024/04/01/how-to-register-custom-font-collections-for-the-font-library/

@justintadlock justintadlock added post on social and removed flow: approved can move forward labels Apr 1, 2024
@flexseth
Copy link

flexseth commented Apr 3, 2024

https://docs.google.com/document/d/1Gy5jUGQjvqOCsR_eLCqYfKc6cC_ccl77cAUT4picO-M/edit?usp=sharing

Greetings @justintadlock - under the heading

Limitations for themes

Question: Do you think it would be a good idea to include licensing information here?

For instance

  • Using Font Awesome as a Font Library
  • Using Adobe Web Fonts
  • Using fonts purchased from XXXX font foundry

All of these could have licensing restrictions that end-users and themers need to know about...

@justintadlock
Copy link
Author

Question: Do you think it would be a good idea to include licensing information here?

No, my post is just focused on using the API. It would be up to developers (or their legal representation) to decipher/understand the licensing terms of any particular third-party project they want to use.

@flexseth
Copy link

flexseth commented Apr 3, 2024

It would be up to developers (or their legal representation) to decipher/understand the licensing terms of any particular third-party project they want to use.

I see, that's the general approach WordPress takes I suppose - "This is not legal advice." 😆

@marybaum
Copy link
Member

marybaum commented Apr 3, 2024

That's actually something that's going to come up in my type post 5 — where to get good type. The new Monotype subscription has some tiers that let us download, and the reality is that while we do prefer people use open-source typefaces, and people can use their own, I have saved a frolicking fortune with that $200/year Monotype subscription. It includes a lot of small foundries along with the very biggest, so it's even curtailed the number of times I have to deal with Adobe's hosted solution (where you still have to write the CSS for Every. Single. Selector. if you want your type to work in Safari and on mobile).

@bph
Copy link
Collaborator

bph commented Apr 12, 2024

Social post schedule for April 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

5 participants