kiliman / operator-mono-lig

Add ligatures to Operator Mono similar to Fira Code
MIT License
3.2k stars 202 forks source link

build doesn't do anything #169

Open ArafatRakib opened 3 years ago

ArafatRakib commented 3 years ago

I'm trying to build the font in a windows system. However, when I type build in terminal after installing all the npm modules, it doesnt do anything. In powershell it shows


build : The term 'build' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ build
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (build:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException````
kiliman commented 3 years ago

In PowerShell, scripts that are in the current directory must be written as .\build

AnthonyLzq commented 3 years ago

Same here, using with Manjaro.

kiliman commented 3 years ago

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf
AnthonyLzq commented 3 years ago

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf

This fixed my issue, thanks. Btw, yes, Manjaro is an ArchLinux based distro.

eo1989 commented 3 years ago

Running .\build in powershell still doesnt populate the build folder. npm install yields errors in powershell, but works in wsl2. That being said, running bash ./build.sh in wsl2 (ubuntu 20.04) (im beta on windows 11) yields line 8 error.

image

kiliman commented 3 years ago

Hmm.. first for PowerShell, did you make sure the .\original folder contains the correct Operator Mono fonts? (see comment above as to name format)

As for WSL, what happens if you just type ./build.sh without the sh or bash in front?

Those \r seems like a line ending issue. By default, git will clone and convert line endings to platform specific. Windows typically uses CRLF \r\n whereas Linux/macOS uses just LF \n. So it looks like WSL is expecting \n but sees \r\n since you checked out the files from the Windows side.

umardevid commented 3 years ago

Same here, using with Manjaro.

yea same with me in Ubuntu

umardevid commented 3 years ago

@AnthonyLzq so Manjaro is a Linux distro? Did you copy the Operator Mono fonts into the ./original folder?

Make sure they are named like this. No spaces.

OperatorMono-Bold.otf
OperatorMono-BoldItalic.otf
OperatorMono-Book.otf
OperatorMono-BookItalic.otf
OperatorMono-Light.otf
OperatorMono-LightItalic.otf
OperatorMono-Medium.otf
OperatorMono-MediumItalic.otf
OperatorMono-XLight.otf
OperatorMono-XLightItalic.otf
OperatorMonoSSm-Bold.otf
OperatorMonoSSm-BoldItalic.otf
OperatorMonoSSm-Book.otf
OperatorMonoSSm-BookItalic.otf
OperatorMonoSSm-Light.otf
OperatorMonoSSm-LightItalic.otf
OperatorMonoSSm-Medium.otf
OperatorMonoSSm-MediumItalic.otf

whay the original font in my download is empty?

bryant-the-coder commented 2 years ago

i use this to patch the font using docker https://github.com/microsoft/cascadia-code/issues/612#issuecomment-1008257491

Beatlz commented 7 months ago

In PowerShell, scripts that are in the current directory must be written as .\build

Hey, amazing repo. I love this. You should probably add this to the README.md : )