Re: Fontmake needed for generating variable font from source

2024-12-08 Thread Ben Beasley via python-devel
I had the idea of packaging fontmake on my back burner long ago, 
although I had abandoned the project. I just pulled together a draft 
spec file, https://music.fedorapeople.org/fontmake.spec. The current 
version of fontmake looks reasonably straightforward to package, with 
the following caveats:


    - no pathops extra; this would require a python-skia-pathops 
package, which is nontrivial due to the involvement of Skia


    - no autohint extra for now; this would require a 
python-ttfautohint-py package, which is probably feasible


    - no repacker extra for now; this would require a python-uharfbuzz 
package, and then enabling the repacker extra in the fonttools package, 
which is probably feasible


The json extra can be packaged, at least in Rawhide, now that 
https://src.fedoraproject.org/rpms/python-ufoLib2/pull-request/3 is 
merged – thanks!


Finally, python-glyphsLib needs to be updated to version 6.x first. It’s 
pretty far behind right now. I opened a PR, 
https://src.fedoraproject.org/rpms/python-glyphsLib/pull-request/1, to 
get to version 5.3.2 and generally bring it into the modern era, then 
another, 
https://src.fedoraproject.org/rpms/python-glyphsLib/pull-request/2, to 
update to the latest version. That will require a new dependency, 
openstep-plist, which I submitted for review in 
https://bugzilla.redhat.com/show_bug.cgi?id=2330988.


Once all of that happens, I can submit fontmake for review.

– Ben Beasley (FAS: music)

On 12/6/24 8:52 AM, Miro Hrončok via python-devel wrote:

On 06. 12. 24 14:40, Anirban Mitra via python-devel wrote:
Fontmake is a python tool required to generate variable fonts from 
designspace and ufo sources. I have created a variable font which I 
want to package for fedora. But I couldn't find fontmake in fedora 
packages. So do I need to package fontmake first to be able to 
package my font or I can install it through pip during the build 
stage of my package and list only python3 and pip as dependency.


Hello,
installing through pip during the build is not possible (at least not 
for official Fedora packages).


You SHOULD package fontmake first.

If that's unreasonably complicated (it shouldn't be), you might bundle 
it as a second source of your font instead.



--
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Fontmake needed for generating variable font from source

2024-12-11 Thread Ben Beasley via python-devel
With cooperation from Athos Ribiero, Parag Nemade, and Benson Muite, 
I’ve completed all of the necessary dependency work and posted fontmake 
for review at https://bugzilla.redhat.com/show_bug.cgi?id=2331684. Thanks!


I’m targeting Rawhide only for now, since I’m reluctant to upgrade 
python-glyphsLib from 5.x to 6.x in stable releases, but that should be 
a compatible upgrade in practice, so it’s probably feasible to bring 
fontmake to F41 and F40 if someone really needs it.


I also opened a PR for cascadia-code-fonts, 
https://src.fedoraproject.org/rpms/cascadia-code-fonts/pull-request/3. 
Unfortunately, I wasn’t able to go as far as actually building the font 
from sources with fontmake, but the PR does at least take a few steps in 
that direction.


On 12/8/24 8:53 AM, Athos Ribeiro wrote:

On Sun, Dec 08, 2024 at 07:30:08AM -0500, Ben Beasley wrote:
I had the idea of packaging fontmake on my back burner long ago, 
although I had abandoned the project. I just pulled together a draft 
spec file, https://music.fedorapeople.org/fontmake.spec. The current 
version of fontmake looks reasonably straightforward to package, with 
the following caveats:


    - no pathops extra; this would require a python-skia-pathops 
package, which is nontrivial due to the involvement of Skia


    - no autohint extra for now; this would require a 
python-ttfautohint-py package, which is probably feasible


    - no repacker extra for now; this would require a 
python-uharfbuzz package, and then enabling the repacker extra in the 
fonttools package, which is probably feasible


The json extra can be packaged, at least in Rawhide, now that 
https://src.fedoraproject.org/rpms/python-ufoLib2/pull-request/3 is 
merged – thanks!


Finally, python-glyphsLib needs to be updated to version 6.x first. 
It’s pretty far behind right now. I opened a PR, 
https://src.fedoraproject.org/rpms/python-glyphsLib/pull-request/1, 
to get to version 5.3.2 and generally bring it into the modern era, 
then another, 
https://src.fedoraproject.org/rpms/python-glyphsLib/pull-request/2, 
to update to the latest version. That will require a new dependency, 
openstep-plist, which I submitted for review in 
https://bugzilla.redhat.com/show_bug.cgi?id=2330988.


Once all of that happens, I can submit fontmake for review.

– Ben Beasley (FAS: music)



Thanks, Ben!

+1

I added you as an admin in python-glyphsLib.


--
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue