Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add ligature support #49

Open
D-u-c-k-s-e-l opened this issue Feb 4, 2024 · 1 comment
Open

Feature request: Add ligature support #49

D-u-c-k-s-e-l opened this issue Feb 4, 2024 · 1 comment

Comments

@D-u-c-k-s-e-l
Copy link

I would love to be able to create ligatures with this app.

@D-u-c-k-s-e-l D-u-c-k-s-e-l changed the title Add ligature support Feature request: Add ligature support Feb 4, 2024
@diaowinner
Copy link
Contributor

diaowinner commented Mar 3, 2024

Bits'n'Picas doesn't support ligature and many other OT features. However, you can use feaLib in fonttools to add OT features.

# Generate ttf
bitsnpicas convertbitmap -f ttf -o FONT_base.ttf FONT.kbitx

# Generate otb
bitsnpicas convertbitmap -f otb -o FONT_base.otb FONT.kbitx

# Add OpenType features (Bits'n'Picas cannot do this itself)
fonttools feaLib -o FONT.ttf FONT.fea FONT_base.ttf
fonttools feaLib -o FONT.otb FONT.fea FONT_base.otb

rm *_base.ttf
rm *_base.otb

Here is a sample feature file which replaces yi into glyph u4e00 ():

feature rlig {
  lookup LigaTest {
    sub y i by u4e00;
  } LigaTest;
} rlig;

Here and here is the docs of the .fea file and the feaLib tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants