Skip to content

Replace Helvetica Neue with Open-Source Font#24

Closed
woodrowbarlow wants to merge 1 commit into
MagicMirrorOrg:masterfrom
woodrowbarlow:master
Closed

Replace Helvetica Neue with Open-Source Font#24
woodrowbarlow wants to merge 1 commit into
MagicMirrorOrg:masterfrom
woodrowbarlow:master

Conversation

@woodrowbarlow

Copy link
Copy Markdown

Helvetica Neue is a proprietary font. Redistributing it in this
way is not considered fair use. This commit removes the Helvetica
Neue fonts from the repository and instead includes Roboto. It is
written in such a way that if you copy the Helvetica Neue fonts
back into the fonts/ directory (under a helvetica-neue subfolder)
they will be used as the primary font instead of Roboto.

This addresses issue #23

Helvetica Neue is a proprietary font. Redistributing it in this
way is not considered fair use. This commit removes the Helvetica
Neue fonts from the repository and instead includes Roboto. It is
written in such a way that if you copy the Helvetica Neue fonts
back into the fonts/ directory (under a `helvetica-neue` subfolder)
they will be used as the primary font instead of Roboto.
@woodrowbarlow

Copy link
Copy Markdown
Author

here is a font comparison, for your benefit:

Hevetica Neue versus Roboto font comparison

@MichMich MichMich closed this Jan 15, 2016
khassel pushed a commit that referenced this pull request May 6, 2026
**[#24](https://github.com/MagicMirrorOrg/MagicMirror/security/code-scanning/24)
– `js/class.js`**

`fnTest` works by serialising a function to a string and checking if
`"xyz"` appears in it - the function is never actually called. The bare
`xyz;` is never executed, so CodeQL is right to flag it. `return xyz;`
makes the intent clear. So this is purely a cosmetic change.


**[#26](https://github.com/MagicMirrorOrg/MagicMirror/security/code-scanning/26)
– `tests/e2e/helpers/global-setup.js`**

CodeQL flagged `if (exec) exec;` as a useless expression - and it was
right. But the real find was one level deeper.

`startApplication` hardcoded `const port = 8080`, so `MM_PORT` was
always overwritten before the app started. The test named "Set port 8100
on environment variable MM_PORT" was actually testing port 8080 the
whole time - it just happened to pass anyway.

Removed the dead `exec` parameter, made `startApplication` read
`MM_PORT` from the environment, and fixed the test so it actually checks
what it says it checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants