Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
/ OcticonsV10Font Public archive

Drop in replacement for Octicons used by Nerd Fonts

License

Notifications You must be signed in to change notification settings

FHArchive/OcticonsV10Font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github top language Codacy grade Repository size Issues License Commit activity Last commit

OcticonsV10Font

GitHub Octicons V10

See fontinfo for more information on the font table

Fonts are under sfd, otf, ttf and woff2

OcticonsNF_MIN_Copy.sfd is the font I use to patch webfonts as it contains the glyphs that I do/ foresee using. These will play nice with nerd fonts generated with any of the fonts under the above directories.

Font generation

I will probably use some scripts for this next time but exporting 6 fonts twice didn't take too long to do manually

SFD, OTF, TTF and WOFF2

.sfd is the format used by fontforge

.otf is widely supported though in most cases you should use ttf

.ttf is widely supported as has recently been argued to be superior to cff otf (still uses open type)

.woff2 to provide web support. Most browsers support this format

FontForge Challenges and workarounds

FontForge has had some significant challenges importing svgs. The workaround is as follows:

Preferred

  1. Install the following: inkscape (any), imagemagik (linux/wsl), potrace (linux/wsl)
  2. Run inkscape.com [icon].svg -w 160 -y 255 -o [icon].png for each svg
  3. Run convert [icon].png [icon].bmp
  4. Run potrace [icon].bmp -s -o [icon].svg
  5. Remove [icon].png and [icon].bmp

To do this all in one go, run batchProcessLinux.py in linux or wsl.

Alternative 1

  1. Run inkscape.com -g --batch-process [icon].svg --verb='EditSelectAll;SelectionUnion;FileSave' for each svg file
  2. Import into FontForge

Alternative 2

  1. Open the svg in Inkscape
  2. Copy the svg to FontForge
  3. For 16x16 svgs, scale uniformly by 6250% and move by x=492, y=-492
  4. Metrics set width to 1000 and then metrics centre in width

Download

Clone

Using The Command Line

  1. Press the Clone or download button in the top right
  2. Copy the URL (link)
  3. Open the command line and change directory to where you wish to clone to
  4. Type 'git clone' followed by URL in step 2
$ git clone https://github.com/FredHappyface/OcticonsV10Font

More information can be found at https://help.github.com/en/articles/cloning-a-repository

Using GitHub Desktop

  1. Press the Clone or download button in the top right
  2. Click open in desktop
  3. Choose the path for where you want and click Clone

More information can be found at https://help.github.com/en/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop

Download Zip File

  1. Download this GitHub repository
  2. Extract the zip archive
  3. Copy/ move to the desired location

Community Files

Licence

MIT License (See the LICENSE for more information.)

Changelog

See the Changelog for more information.

Code of Conduct

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone. Please see the Code of Conduct for more information.

Contributing

Contributions are welcome, please see the Contributing Guidelines for more information.

Security

Thank you for improving the security of the project, please see the Security Policy for more information.

About

Drop in replacement for Octicons used by Nerd Fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages