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

Create "Alexandrie-Cairo-Freetype" for cairo code that is only for freetype #54

Open
tinchodias opened this issue Mar 7, 2024 · 2 comments

Comments

@tinchodias
Copy link
Contributor

tinchodias commented Mar 7, 2024

Cairo doesn't necessarily need the use Freetype API. There is Harfbuzz-Cairo API which could avoid talking to Freetype directly from Alexandrie, to load fonts and render them.

It's not much code for this new package:

  • class is AeCairoFreetypeFontFace
  • a method extension referencing it (AeFTFace>>#newCairoFontFace)
  • check more
@tinchodias
Copy link
Contributor Author

Additionally, there are FFI bindings to functions that belong to hb-ft.h. In the case we decide to remove those bindings, we could avoid a circular dependency Freetype <-> Harfbuzz. Explained here: harfbuzz/harfbuzz#2524 (comment) (this can be interesting for @tesonep).

There are bindings to functions that begin with hb_tf_:
Screenshot 2024-11-22 at 18 45 18

@tinchodias
Copy link
Contributor Author

#46 (comment)
is an example of how to totally avoid talking to FreeType directly (we could use it through Harfbuzz).

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

1 participant