I've installed font-forge for windows 10. I am currently using python 3.7 and I want to convert image to font. So what I am trying to do is to convert image to .svg using Potrace then converting .svg to font by font-forge. (Better suggestions to convert image to font are also welcomed.)
I know that I can open fontforge-console.bat file and write ffpython <filename.py> to do this.
But I want to make font forge a pyhton extension so that I can just do it by importing it like "import fontforge" in the python file.
How to do this?
How to make fontforge a python extension
1.2k Views Asked by Aaditya Chopra At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in SVG
- Svg containers not positioning properly
- How do I create a teardrop in HTML?
- Get current rotation in degrees of group in snap.svg
- Add Specific width and height for a svg image
- SVG data image not working as a background-image in a pseudo element
- Scala.js: Selecting and manipulating generated SVG
- selecting and using textPath elements in Chrome
- HaxeFlixel, icon turns into a Black square
- Can this kind of SVG be simplified?
- SVG progressive line drawing animation
- Catmull-Rom interpolation on SVG Paths
- Hide overflow for inner g element inside svg element
- Pure CSS3 or SVG animated Doughnut Chart
- SVG icons with PyQt on Windows and Linux
- d3 preventing drag on specific elements
Related Questions in IMAGE-PROCESSING
- Need help in detecting multiple blobs
- Image based steganography that survives resizing?
- WinRT Extract Thumbnail from RAW image format
- 3D B-Spline approximation
- Qualitative and Quantitative analysis of filtered back projection / iradon in matlab
- How to detect objects in an image based on colour?
- How to make sense (handle) when computes logarithm of zero in prior information
- scilab - Drawing bounding box
- Lowpass filter non working
- Get a single line representation for multiple close by lines clustered together in opencv
- error while drawing several x-marks on a binary image in matlab
- Which method should I use to find gradient direction of pixels in an image?
- Finding Circle Boundary Pixels Coordinates and RGB Intensity Values from An RGB Input Image in Matlab
- using SURF for handdetection
- Using only one tool from CLImageEditor
Related Questions in FONTFORGE
- Is it possible to remove/edit the metadata in fontforge
- FontForge - Why do Python scripts not work through "File->Execute Script"
- Can I call some function of FontForge in my own C# project?
- Get glyph widths by fontforge script
- brew install fontforge error yosemite
- After setting the same width via python font forge cannot edit font anymore
- How do I edit a custom font's size in Skyrim SSE?
- Height Difference between characters while displaying using font file
- font forge remove glyphs
- How can I reduce the .ttf file size to reduce overall size of PDF generated by PDFJet library in JAVA?
- How do I compare the widths of two different fonts?
- Fontforge Scripting how to add ligatures for a glyph
- How to extract embedded fonts from pdf file using fontforge script
- How to create own font with emojis included (Maybe with Fontforge, Python)?
- Generate TTF from PNG/SVG files using FontForge
Related Questions in POTRACE
- PyPotrace pip Install Error on Jupyter Notebook
- Images.png Manipulation to SVG in C#
- Need help setting up Potrace for use in C++
- How to convert PNG/JPEG images to svg with ImageMagick?
- Converting any common image type to a printable dxf
- Installing PyPotrace on Windows 10
- How to get straight lines svg from Potrace
- "Unhandled promise rejection TypeMismatchError" in internet explorer 11
- How do you install the Potrace command line tool?
- Is it possible to compile potrace for iOS?
- Why is edge detection potraces default and how can I change that?
- Replace positional argument with data
- I'm looking for ways to convert Bezier curves into .svg images
- Export svg code to .svg file then upload local?
- Extract contour of imageinto svg
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is a python library for python2:
I have recently developed a script for batch processing svg files to TrueType fonts using FontForge. I have tested it only on linux, but you can try it on Windows. fontforge executable must be in PATH and it requires Pythos 3.6+
https://github.com/mnesarco/ff-batch