Compress font assets
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
- A-Frame Version: 0.8.2
- Platform / Device: all
- Reproducible Code Snippet or URL: https://cdn.aframe.io/fonts/Roboto-msdf.png
I noticed that the PNG file for the Roboto font can be compressed:

Using ImageOptim with Insane optimisation level, I can squeeze 17% off the initial weight for the same quality.
I can push a branch with all the assets optimised, but in the long term, it'd be better to integrate it in the publishing workflow.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced Roboto font asset at https://cdn.aframe.io/fonts/Roboto-msdf.png and inspect the repository's publishing workflow. Compare ImageOptim's output with the current asset, then verify that the optimized font is published without quality loss and that any workflow change completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100