How creating a font package

I think about new JetBrains Mono. Nice font for terminal.
font
compare_code_cons-36584b19a4a1f489594fe4faf58681a6

How creating package from scratch. Is any package Jam or other place/time for creators packages?

3 Likes

Here some links

https://www.haiku-os.org/docs/userguide/en/applications.html#hpkg

http://www.besly.de/index.php/en/package-system/manually-install-system-files

http://besly.de/index.php/en/package-system/hpkg-creator

1 Like

Welcome @0xtrzy!

To get the font into the main HaikuDepot repo, youā€™ll have to create a haikuports recipe for it, see the last link lelldorin posted.
There are many recipes for fonts already at https://github.com/haikuports/haikuports/tree/master/media-fonts that will get you started.

3 Likes

yes that is a nice one. I use fira code atmā€¦ but JetBrains Mono is worth a tryā€¦

Ok , I create script. I create copy from web paga because i dont know path will be correct in future. https://gitlab.com/0xtrzy/jetbrainsmono-package

And Have trouble:

  1. Where I must put my font? is possible put any name?
    for example
    {$fontsDir}/ttfonts
    {$fontsDir}/ttfonts/sherif/
    {$fontsDir}/spoko

  2. I have woof, etc. Put one font in more than one version / type?

  3. Is possible download zip and extract file direct to end directory?

  4. Number of recipe
    for example
    1
    1.0
    1.0a
    1.0.3.4.5.6

  5. SOURCE_DIR is dir with my files, zip or code for using make?

Next Where i must puth my work?
How chceck my recipe?
Where put files?

1 Like

You get all this information before, and yes you need to read and learn to do it.

For testing and learning how does files stored you can use my hpkg creatorā€¦

ā€¦from https://software.besly.de

To learn more about haiku you can read the haiku Tourā€¦

https://www.haiku-os.org/docs/welcome/de/quicktour.html

ā€¦or watch my ā€˜first stepsā€™ Tour with do it your self parts

On our repo server too

As I said, just compare your recipe to the many already in ā€œmedia-fontsā€ at haikuports.

I ask about my recipe. In other recipes no exist my questions

Then I apparently misunderstand your questions.

1 Like

As @humdinger already replied, many examples in the link he posted ā€¦

@Begasus This is unusefull reply. Stupid answer

Already gave answers regarding to these at IRC, creating a font package is easy, for example, check:

There a other examples you can use as a base, but this one should be enough to get you started (as suggested earlier)

EDIT, looking at their site they provide a zip download also, think I mentioned this to you on IRC also?
With that you only have to cp the content of the ttf folder to the correct place (but using #noarchive should work well)

@0xtrzy, didnā€™t checkout your recipe if it builds, but seems to me you need ā€œ#noarchiveā€ for the ttf files, see


Canā€™t comment more the 3 times, so editing this post:

@0xtrzy, created a recipe based on your work for the newly released version, credits given to you for the original work: https://github.com/haikuports/haikuports/pull/4709


Probably needs: cp -R $sourceDir*/*.ttf ${FONTDIR}

Hey why not reply?

Created a recipe based on @0xtrzy one (with credits there), itā€™s available in HaikuDepot now

Hmm mean ā€œcp -rā€ not copy without prompting, overwriting existing one? Is this the right way?

Hence the *.ttf @lelldorin, there are no other fonts like this included