Giter Club home page Giter Club logo

Comments (7)

EnnoxHD avatar EnnoxHD commented on September 27, 2024 1

see https://github.com/EnnoxHD/glyph-creator for svg file conversion

from ikonli.

aalmiray avatar aalmiray commented on September 27, 2024

What workflow did you use to transform the Feather icons from svg to font?

from ikonli.

EnnoxHD avatar EnnoxHD commented on September 27, 2024

I am currently writing a small program to automate the process. I'll release it in the next days.
In the mean time I used a simple Java program and https://inkscape.org/ on my Windows machine:

public static void main(String[] args) throws Exception {
	System.out.println("Conversion started\n------------------");
	final String inkscape = "C:\\Program Files\\Inkscape\\bin\\inkscape.com";
	final String dir = "C:\\Users\\username\\Downloads\\feather-4.28.0\\icons\\";
	DirectoryStream<Path> fileStream = Files.newDirectoryStream(new File(dir).toPath());
	for(Path file : fileStream) {
		final ProcessBuilder processBuilder = new ProcessBuilder(inkscape, "--with-gui",
			"--actions=\"select-all;verb:StrokeToPath;verb:SelectionCombine;"
			+ "verb:FileSave;file-close;window-close\"", file.toString());
		System.out.println(processBuilder.command().stream().collect(Collectors.joining(" ")));
		final Process process = processBuilder.start();
		process.waitFor();
		Thread.sleep(1000L);
	}
	System.out.println("--------------------\nConversion completed");
}

from ikonli.

EnnoxHD avatar EnnoxHD commented on September 27, 2024

And of cause the Icomoon App (https://icomoon.io/app/).

from ikonli.

EnnoxHD avatar EnnoxHD commented on September 27, 2024

Maybe there's a way to automate this too (and save you some minutes) with some tool like FontForge (https://fontforge.org/) but I have no experience with it. The critical and time consuming work is to convert each svg like in the code above.

from ikonli.

EnnoxHD avatar EnnoxHD commented on September 27, 2024

see https://github.com/EnnoxHD/fluentui-system-icons-extractor for extraction of svg resource files from https://github.com/microsoft/fluentui-system-icon

from ikonli.

EnnoxHD avatar EnnoxHD commented on September 27, 2024

microsoft/fluentui-system-icons#21

from ikonli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.