Repository navigation
Conversation
The bundled Lato 1.104 does not have many letters of Latin-script languages, for example Turkish `İ ğ ş`. The browser then shows these letters in a different font. Some translations turn the font off for this reason. Lato 2.015 has these letters. The file names, the font weights and the `unicode-range` values do not change. See #66334. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This change replaces the Lato 1.104 font files in Twenty Fourteen with Lato 2.015. Lato 1.104 does not have many letters of Latin-script languages, for example Turkish
İ ğ ş. Lato 2.015 has these letters.Changes:
fonts/lato/*.woff2and*.woff: new files from Lato 2.015. The file names do not change.fonts/font-lato.css: new copyright line and newvervalues. The@font-facerules and theunicode-rangevalues do not change.fonts/lato/LICENSE.txt: the OFL text from the Lato 2.015 package.functions.php: new font stylesheet version.readme.txt: new copyright line and source.How the font files were made:
https://www.latofonts.com/files/Lato2OFL.zip(SHA-25642b54e96c07e299d967fc3227c7bd63a20d6cfb1dc8fd6dae83628091e20a5b8).pyftsubset(fonttools) on each TTF with--layout-features=* --name-IDs=* --name-languages=* --notdef-outline. Hinting stays, as in the old files.unicode-rangevalues fromfont-lato.css:lato-latin-*.woff2: the latin range.lato-latin-ext-*.woff2: the latin-ext range.lato-all-*.woff: the two ranges together.Weights and sources: 300 (
Lato-Light,Lato-LightItalic), 400 (Lato-Regular,Lato-Italic), 700 (Lato-Bold,Lato-BoldItalic), 900 (Lato-Black).File sizes: each
lato-latin-*.woff2file increases from approximately 23 KB to 40 KB. Eachlato-latin-ext-*.woff2file increases from approximately 5 KB to 50 KB. Because ofunicode-range, the browser loads a latin-ext file only when the page has a letter in that range.Test:
Live example: sadibey.com (tr_TR) serves the font files from this PR through a child theme. The child theme overrides
twentyfourteen_font_url().Note: Translations that set
Lato font: on or offtooff(for example tr_TR, cs_CZ) can change it back toonafter this change.Trac ticket: https://core.trac.wordpress.org/ticket/66334
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Research of the problem, generation of the font subsets, edits to the CSS and text files, and the text of this description. I reviewed the changes and tested the result.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.