EB-Garamond icon indicating copy to clipboard operation
EB-Garamond copied to clipboard

Create build instructions

Open doctorlard opened this issue 2 years ago • 36 comments

It's pretty simple, just run make - but there is a Python module dependency from FontForge that is not quite trivial to set up. I'll put together something for a PR in the next day or two.

doctorlard avatar Feb 26 '23 22:02 doctorlard

Well, I've totally lost the thread here. Would someone be so kind as to explain me the basic process as if I were six years old?

MrSpinalzo avatar Feb 26 '23 22:02 MrSpinalzo

@MrSpinalzo Sorry, you were in the right thread, I was in the wrong one. 😄

Did you install FontForge?

timgrei avatar Feb 26 '23 22:02 timgrei

After installing FontForge find a file in the installation folder called fontforge-console.bat and run it. Then open the file Makefile in the repo with an editor and change line 15 to PYTHON?=ffpython.

timgrei avatar Feb 26 '23 22:02 timgrei

Done. What's next?

MrSpinalzo avatar Feb 26 '23 23:02 MrSpinalzo

Do you know how to put something in the environment path?

timgrei avatar Feb 26 '23 23:02 timgrei

Nope. Don't know what's that.

MrSpinalzo avatar Feb 26 '23 23:02 MrSpinalzo

Okay, let's make sure you even need to do that. Open cmd and type ffpython. If you get a python console, you don't. If you get an error, you do.

timgrei avatar Feb 26 '23 23:02 timgrei

Seems that I do.

MrSpinalzo avatar Feb 26 '23 23:02 MrSpinalzo

Okay. Here is a random link, that tells you where to find the path variable: https://www.howtogeek.com/787217/how-to-edit-environment-variables-on-windows-10-or-11/ You need to add the path to ffpython.exe generated by the bat file to it.

timgrei avatar Feb 26 '23 23:02 timgrei

I'm afraid I'm lost again. There's no ffpython.exe (or maybe I can't find it).

MrSpinalzo avatar Feb 26 '23 23:02 MrSpinalzo

When you open cmd in the folder where the bat was, can you then run ffpython?

timgrei avatar Feb 27 '23 00:02 timgrei

I mean, I typed PYTHON?=ffpython in the makefile, but it didn't generate anything. Or so I think.

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

No, not the Makefile. The .bat one.

timgrei avatar Feb 27 '23 00:02 timgrei

Oh. I see. I'll try again. Thanks so much for your patience, by the way.

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

Your very welcome!

timgrei avatar Feb 27 '23 00:02 timgrei

Let me recapitulate: after running the fontforge.console batch file, I typed PYTHON?=ffpython in the makefile contained in the EB Garamond folder. Then nothing happened, or maybe something happenede but I didn't notice.

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

I found, however, a ffpython exe in the bin folder contained in the FontForgeBuilds folder. Is that the exe you were refering to?

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

Yes! very good. I'm sorry, I'm not on a Windows PC and I have never done this myself, so I'm just reading here and there on Stackoverflow and tell you what I would do.

timgrei avatar Feb 27 '23 00:02 timgrei

Great! I've just added the path to ffpython.exe. What's next now?

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

Now, you need to install make. There are multiple options for make on Windows. I have never used any of them. Here is one: https://cygwin.com/install.html

timgrei avatar Feb 27 '23 00:02 timgrei

In the installer, you apparently need to make a check at make, which is not necessarily default marked.

timgrei avatar Feb 27 '23 00:02 timgrei

Alright. So I installed make. I think.

MrSpinalzo avatar Feb 27 '23 00:02 MrSpinalzo

Now, you don't get your hopes up and go to the repo in cmd and run make. If that doesn't work try make -f Makefile.

timgrei avatar Feb 27 '23 00:02 timgrei

Shit! It doesn't work.

MrSpinalzo avatar Feb 27 '23 01:02 MrSpinalzo

What does it say?

timgrei avatar Feb 27 '23 01:02 timgrei

The term "make" is not recognized.

MrSpinalzo avatar Feb 27 '23 01:02 MrSpinalzo

You can try to find a make.exe in the Cygwin folder and add that to the path.

timgrei avatar Feb 27 '23 01:02 timgrei

I think you see now, why people do this stuff in Linux 😄

timgrei avatar Feb 27 '23 01:02 timgrei

Yeah, I'm getting the idea

MrSpinalzo avatar Feb 27 '23 01:02 MrSpinalzo

@doctorlard @MrSpinalzo I'm able to build on Windows 10 using Make for Windows and the process I described above for ffpython.

timgrei avatar Mar 01 '23 22:03 timgrei