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

font-patcher: Reintroduce fsType fix #692

Merged
merged 1 commit into from
Dec 11, 2021

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Nov 28, 2021

Description

[why]
With commit
f7d6fcb font-patcher: Allow processing of fonts with fsType set

we added support for fonts with the fsType set. This came up in
issue #686 with font 'Bicubik'.

The solution in that commit uses (modern) textual flags in the
fontforge open() method. But they have been only introduced in 2020,
so people using older fontforge could not patch anything anymore.
This has been reported in issue #691.

As a quick fix the fsType support has been removed with commit
ab6fa3c Reverts part of #687 * the patcher refuses to patch all/most fonts with this flag in the open options

[how]
Revert ab6fa3c but use the old fashioned numerical open flags
interface instead.

[note]
The textual open() flags have been introduced into fontforges python
interface with their commit

fontforge/fontforge@4a76712

  Font Open flag improvements
  * Document more Open flags
  * Add string tuple interface to python FontOpen API

Requirements / Checklist

  • Read the Contributing Guidelines
  • Read or at least glanced at the FAQ
  • Read or at least glanced at the Wiki
  • Scripts execute without error (if necessary):
    • If any of the scripts were modified they have been tested and execute without error, e.g.:
      • ./font-patcher Inconsolata.otf --fontawesome --octicons --pomicons
      • ./gotta-patch-em-all-font-patcher\!.sh Hermit
  • Extended the README and documentation if necessary, e.g. You added a new font please update the table

What does this Pull Request (PR) do?

Reintroduce fsType fix as per f7d6fcb but avoiding problem with older fontforge

How should this be manually tested?

Try to patch some font from src/, try to patch Bicubik (or other fsTyoe set font).
Use fontforge revision 20190801 or older, and revision 20200314 or newer.
Just the ability to open the font is enough, no need to inspect the patched fonts.

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

Edit: Just formatting changes
Edit: Add version requirements for tests

[why]
With commit
  f7d6fcb font-patcher: Allow processing of fonts with fsType set
we added support for fonts with the fsType set. This came up in
issue #686 with font 'Bicubik'.

The solution in that commit uses (modern) textual flags in the
`fontforge` open() method. But they have been only introduced in 2020,
so people using older `fontforge` could not patch anything anymore.
This has been reported in issue #691.

As a quick fix the fsType support has been removed with commit
  ab6fa3c Reverts part of #687 * the patcher refuses to patch all/most fonts with this flag in the open options

[how]
Revert f7d6fcb but use the old fashioned numerical open flags
interface instead.

[note]
The textual open() flags have been introduced into `fontforge`s python
interface with their commit

fontforge/fontforge@4a76712

  Font Open flag improvements
  * Document more Open flags
  * Add string tuple interface to python FontOpen API

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@ryanoasis
Copy link
Owner

I think this could be a variable with the value instead of comment, but works well and tested out. Thanks.

@ryanoasis ryanoasis merged commit f33b029 into master Dec 11, 2021
@ryanoasis ryanoasis deleted the bugfix/fstype-font-does-not-open branch December 11, 2021 19:16
LNKLEO pushed a commit to LNKLEO/Nerd that referenced this pull request Nov 24, 2023
…es-not-open

font-patcher: Reintroduce fsType fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants