subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.6k stars 66 forks source link

Provide a Dockerfile for builds #180

Open ravshansbox opened 5 months ago

ravshansbox commented 5 months ago

Currently it's hard to build the font. I've tried both on mac and linux without any success. Would be great to have a docker build.

subframe7536 commented 5 months ago

There will be a browser-based tool for custom build.

Also, in v7, the minimal dependency is foundrytools-cli. I don't think it's too hard to install it.

ravshansbox commented 5 months ago

Installing it is not hard, but in bare ubuntu it is not working

subframe7536 commented 5 months ago

Is there any error log?

ravshansbox commented 5 months ago

Yeap, sure. Here it is

image
ravshansbox commented 5 months ago

What are the exact steps to do this in a fresh ubuntu?

subframe7536 commented 5 months ago

hmm... I recommend to create a codespace on variable branch and build the font in it

subframe7536 commented 5 months ago

What are the exact steps to do this in a fresh ubuntu?

In my Debian on WSL, there is no extra step

ravshansbox commented 5 months ago

I'm pretty sure you need to install python and pip at least

subframe7536 commented 5 months ago

In codespace:

  1. pip install foundrytools-cli
  2. python build.py

That's all

ravshansbox commented 5 months ago

Figured out what was missing, it's the python-is-python3 package

ravshansbox commented 5 months ago

So basically, these are the required apt packages python3 python-is-python3 fontforge python3-fontforge

subframe7536 commented 5 months ago

Thanks. Docs updated

ravshansbox commented 5 months ago

Also, if one wants to use docker for this, the param --platform=linux/x86_64 should be included on ARM Macs, otherwise linux/arm64 is chosen and some packages won't compile on it

Gn3po4g commented 2 months ago

i use this:

FROM python
WORKDIR /app
COPY . .
RUN apt update && apt upgrade -y && apt install fontforge -y && pip install foundrytools-cli
CMD ["python", "build.py"]