Roey-Shap / FontLerp

Interpolate between any two fonts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FontLerp

ezgif com-gif-maker (1)


ezgif com-gif-maker

This is a small project of mine that seeks to answer the question, "how does one linearly interpolate between two arbitrary vector-based fonts"?

Here's the paper on it!

Here are some videos of it in action!

Code Use

Almost all of the code is mine. However:

I used TTFQuery (ripped it apart a bit for my specific needs...) to pull font data from TTF files. You can find the license notice for TTFQuery in "ttfQuery_Notice" in the root directory of this source tree. TTFQuery's repository can be found here.

I also directly used ptext, which is under a simply CC0 1.0 Universal license. That repository can be found here.

Obviously, I didn't create any of the fonts themselves, either. They're just in there for testing purposes.


Features

This isn't particularly user-friendly, but for those interested, it does work... mostly.

Interpolate betweena any two glyphs! Create text that begins as one font and ends as another! Hold space to pan/scroll with the mouse to zoom in and out! Experience abstract fonts in their full scalable glory! Look through vastly improvable code! Wow! Just think of the possibilities!

In the future, I'd like to expand it to make it easier to use. Most of the features to make it a fully-blown font editor are there, just sorta hidden behind the main font-interpolating showcase (i.e. manipulating points by dragging them around).


Copyright (c) 2022, Roey Shapiro All rights reserved.

This source code is licensed under the Apache 2.0-style license found in the LICENSE.md file in the root directory of this source tree.

About

Interpolate between any two fonts

License:Apache License 2.0


Languages

Language:Python 100.0%