Commit graph

2185 commits

Author SHA1 Message Date
Fini Jastrow
ef38ad6324 font-patcher: Remove obsolete metadata on glyph exchange
[why]
When we overwrite a glyph that originally had some special handling, be
it a substitution or position table entry (GPOS/GSUB), that special
handling is usually not appropriate anymore and has to be removed.

If we need special lookup table entries for the new glyph we would have
to add them later anyhow, because we can not rely on their existance.

In Issue #509 it was a ligature entry, that replaced 'f' followed by 'i'
with the 'fi' ligature. The ligature glyph is overwritten by us with a
telephone symbol and the substitution table entry makes no sense
anymore.

[how]
If we overwrite a preexisting codepoint we remove it from all lookup
tables.

Thanks to all other reporters with details.

Fixes: #509 #254

Reported-by: mangelozzi <mangelozzi@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2021-12-13 16:55:48 +01:00
Marcelsky
2395214d21
Update readme_pl.md 2021-12-13 10:01:36 +01:00
Marcelsky
c36363b7fa
Update readme_pl.md 2021-12-13 09:59:26 +01:00
Marcelsky
fdb45bba7d
Update readme_pl.md 2021-12-13 09:58:47 +01:00
Marcelsky
424c4be114
Fix 2021-12-13 09:57:16 +01:00
Marcelsky
afdb31c602
Modify readme_pl.md to replace "Fonty" <--(that word doesnt exist) with "Czcionki" 2021-12-13 09:54:50 +01:00
Ryan L McIntyre
97f28f4a17 Fix info and license generation going to incorrect files 2021-12-11 13:43:48 -08:00
Ryan L McIntyre
2d03a39223 Improves structure and hopefully automated patching of symbol only nerd font variations
* relates to issues #479 #668
2021-12-11 13:43:47 -08:00
Ryan L McIntyre
e323f2991a
Merge pull request #693 from ryanoasis/feature/set-sfnt-version
font-patcher: Set SFNT Version
2021-12-11 17:42:42 -08:00
Ryan L McIntyre
d72b772cb5
Merge pull request #704 from gitfool/gh697
Update Fira Code to latest version
2021-12-11 17:32:31 -08:00
Ryan L McIntyre
0078253d35
Update LICENSE
partially addresses #266
2021-12-11 16:32:21 -08:00
Ryan L McIntyre
9633b4d362 License audit work to fix some licensing issues in #266 2021-12-11 08:10:08 -08:00
Ryan L McIntyre
775952fa02 Fixes #709 invalid VF font included 2021-12-11 08:08:13 -08:00
Ryan L McIntyre
f33b0298fd
Merge pull request #692 from ryanoasis/bugfix/fstype-font-does-not-open
font-patcher: Reintroduce fsType fix
2021-12-11 11:16:39 -08:00
Ryan L McIntyre
f943e8ec81
Merge pull request #593 from Finii/bugfix/use-correct-source-font-metrics
font-patcher: Use correct source font metrics
2021-12-11 10:32:34 -08:00
Ryan L McIntyre
d8a1586885
Merge pull request #708 from ryanoasis/all-contributors/add-HarshalRathore
docs: add HarshalRathore as a contributor for translation
2021-12-07 22:27:52 -08:00
allcontributors[bot]
7fc875e6e0
docs: update .all-contributorsrc [skip ci] 2021-12-07 05:37:29 +00:00
allcontributors[bot]
f474c7740c
docs: update CONTRIBUTORS.md [skip ci] 2021-12-07 05:37:28 +00:00
Ryan L McIntyre
dc0256b929
Merge pull request #707 from HarshalRathore/master
Added Hindi version of readme.md.
2021-12-06 21:14:36 -08:00
Sean Fausett
6ddc91c2e2
Add patched FiraCode v6.2 2021-12-07 12:16:06 +13:00
Sean Fausett
78be0e1e74
Add unpatched FiraCode v6.2 2021-12-07 12:14:51 +13:00
Harshal Rathore
2fa089885d Added Hindi version of readme.md
Signed-off-by: Harshal Rathore <harshalrathore2014@gmail.com>
2021-12-07 00:04:10 +05:30
Ryan L McIntyre
95dcd54eac Adds backers 2021-12-05 14:00:27 -08:00
Ryan L McIntyre
cc24e8b005 Adds workflow for testing out patcher 2021-12-05 07:54:47 -08:00
Ryan L McIntyre
bbe254334d
Merge pull request #699 from ryanoasis/feature/enhance-open-error-msg
font-patcher: Give meaningful error messages on trivial open fails
2021-12-04 16:13:12 -08:00
Charles Strahan
96ab7f6ef7 add support for codicons
Closes #620
2021-12-04 16:44:01 -06:00
Sean Fausett
0417406a4c
Fix patched font extras 2021-12-04 16:30:03 +13:00
Sean Fausett
fa024b3b01
Add patched FiraCode v6.1 2021-12-04 14:54:31 +13:00
Sean Fausett
20d72ea4a7
Fix vs code dev container 2021-12-04 14:53:59 +13:00
Sean Fausett
d23d0e0089
Add unpatched FiraCode v6.1 2021-12-04 14:36:29 +13:00
Fini Jastrow
3384fc302c font-patcher: Give meaningful error messages on trivial open fails
[why]
When the font file is not existing the message we get is either
unreadable or missleading (at least for normal users).

[how]
Explicitely state why we can not open a font file, at least in the cases
where we can.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2021-11-30 07:58:12 +01:00
Fini Jastrow
0d905e2293 font-patcher: Set SFNT Version
[why]
The Nerd Font Version is not added to the SFNT Version.
This is also a TODO item in `font-patcher`.
The SFNT-Revision is not updated at all.

[how]
Set the SFNT Version and Revision.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2021-11-29 10:11:04 +01:00
Fini Jastrow
f554ed50c6 font-patcher: Reintroduce fsType fix
[why]
With commit
  f7d6fcb5 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
  ab6fa3c5 Reverts part of #687 * the patcher refuses to patch all/most fonts with this flag in the open options

[how]
Revert f7d6fcb5 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

4a76712f0c

  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>
2021-11-28 11:06:17 +01:00
Ryan L McIntyre
ab6fa3c562 Reverts part of #687
* the patcher refuses to patch all/most fonts with this flag in the open options
2021-11-27 11:33:18 -08:00
Ryan L McIntyre
77ff415f3f Updates all contributors 2021-11-27 10:53:43 -08:00
Ryan L McIntyre
0e098ad207
add instructions for adding attribution 2021-11-27 11:27:00 -08:00
Ryan L McIntyre
d2fe032488
Merge pull request #684 from cata0309/patch-1
Update Dockerfile to use latest alpine and py3-pip
2021-11-26 18:46:37 -08:00
Ryan L McIntyre
bafd8150f6
Merge branch 'master' into patch-1 2021-11-26 18:25:54 -08:00
Ryan L McIntyre
e2106fb47c
Merge pull request #626 from dgswilkins/docker
Update Dockerfile to use supported version of alpine and Python
2021-11-26 18:19:01 -08:00
Ryan L McIntyre
dd76528ef1
Merge branch 'master' into docker 2021-11-26 18:13:11 -08:00
Ryan L McIntyre
ecb07a97fa
Merge pull request #664 from kraftwerk28/master
Consider .ttc in docker entrypoint
2021-11-26 18:10:23 -08:00
Ryan L McIntyre
1f350cd22a
Merge branch 'master' into master 2021-11-26 18:02:30 -08:00
Ryan L McIntyre
7145db4dab
Merge pull request #687 from ryanoasis/bugfix/fstype-font-does-not-open
Bugfix/fstype font does not open
2021-11-26 17:57:23 -08:00
Ryan L McIntyre
3ee57228a5 Only patch smaller subset on merging (for now) 2021-11-26 09:52:56 -08:00
Ryan L McIntyre
dc3d40ee86 Archive script doing too much, tweak upload script and add ignore patterns to action 2021-11-26 07:49:18 -08:00
Ryan L McIntyre
387929546b Actions: debug + needs 2021-11-26 07:08:59 -08:00
Ryan L McIntyre
0657c3fc6c Setup matrix for actions 2021-11-26 06:48:25 -08:00
ktanoooo
eadcf61372 Update command for Homebrew cask option 2021-11-25 08:07:16 +01:00
Fini Jastrow
204a43aafb font-patcher: Fail with meaningful message if font can not be opened
[why]
When fontforge is not able to open the font we fail with a meaninless
exception. Users might think that the font-patcher script itself is
broken.

[how]
Exit the script with a hint how to get more information if fontforge was
not able to open the font.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2021-11-24 08:28:53 +01:00
Fini Jastrow
f7d6fcb59c font-patcher: Allow processing of fonts with fsType set
[why]
Through fsType certain restrictions can be set on a font. When fontforge
is used in interactive mode the user can override the restrictions with
a popup dialogue. The font-patcher script dies instead, without any
meaningful message.

[how]
Allow the script to ignore fsType settings when opening.
The restrictions will still persist into the generated patched font.

[note]
This came up with Bicubik by Anton Kudin, that has fsType = 2
(modification restriction) set.

Fixes: #686

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2021-11-24 08:28:53 +01:00