Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohammadraziei/fonts


https://github.com/mohammadraziei/fonts

cicd direct-link font

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

# fonts

[![go to images](https://github.com/MohammadRaziei/fonts/raw/master/readme/go-to-fonts-page.jpg)](https://github.com/MohammadRaziei/fonts/releases)

## How to use it.

There is many ways to download the fonts from [releases](https://github.com/MohammadRaziei/fonts/releases). that we covered them in bellow.

> Each releases has its own tag name. we mentioned them as `` for the rest of this readme file.

> All fonts' formats is `.ttf`.

### Download Manually
See [releases](https://github.com/MohammadRaziei/fonts/releases)
to see all available fonts. then press on
[download](https://github.com/MohammadRaziei/fonts/releases)
button to download your specified font. Or you can manually download the `fonts.zip` file from the release's assets.

### Direct Link
you can generate a direct link to the font in the following pattern. replace the `` with the release name that you found at [releases](https://github.com/mohammadraziei/fonts/releases) page.

```bash
url="https://github.com/MohammadRaziei/fonts/releases/download//fonts.zip"
```

now you can download it using `curl` or `wget` commands.

```bash
# download with curl
curl -LO $url
# download with wget
wget $url
```

### Github actions

If you want to use them in github action you just need to know which `` is suitable for your application. the following code download it into `fonts` directory in the root of the project and extract them automatically

```yaml
- name: Download Fonts
uses: robinraju/[email protected]
with:
## Choose what fonts you need from
# https://github.com/MohammadRaziei/fonts/releases
tag: # like "Latex-lite"
####################################
## Do not change the following lines
repository: "mohammadraziei/fonts"
fileName: "fonts.zip"
out-file-path: "fonts" # target folder
extract: true
```

This option can help whenever you want to run a pipeline that needs to download some fonts. It can be widely used in compiling latex files in CI/CD workflows.
As an example, you can see how this code helps in [our latex template](https://github.com/MohammadRaziei/latex-article-fa/blob/master/.github/workflows/build.yml).

---
:star: Hope that helps. Do not forget to star it. :dizzy: