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

System Font Dialog / Font Data #3390

Closed
markusmoenig opened this issue Jan 24, 2018 · 4 comments
Closed

System Font Dialog / Font Data #3390

markusmoenig opened this issue Jan 24, 2018 · 4 comments
Labels
addition/proposal New features or enhancements integration needs implementer interest Moving the issue forward requires implementers to express interest security/privacy There are security or privacy implications topic: canvas

Comments

@markusmoenig
Copy link

markusmoenig commented Jan 24, 2018

This is related to #3379 which is about getting a FontFace from a system font dialog to allow the user to select a system font to draw with in the 2D canvas.

Apart from getting a FontFace, it would also be great to get the font data of the font itself (OpenFont / TrueType). Paired with something like https://opentype.js.org one could:

  • Implement custom font rasterization engines which surpass the limited text capabilities of the 2D canvas for sophisticated text rendering applications. This would make Illustrator like applications possible in the browser.

  • Triangulate the font data into 3D meshes which can be processed with WebGL or custom rendering technologies (SDF, Raytracing etc.). This would allow full featured 3D applications in the browser.

@annevk annevk added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: canvas security/privacy There are security or privacy implications integration labels Jan 24, 2018
@junov
Copy link
Member

junov commented Jan 28, 2018

Not sure, but perhaps this feature belong in the CSS font loading spec

I imagine it would look something like this:

partial interface FontFace {
    Promise<Blob> getRawData();
}

@annevk
Copy link
Member

annevk commented Jan 28, 2018

cc @tabatkins @svgeesus

@tabatkins
Copy link
Contributor

Yeah, exposing the raw font data would be something done off of FontFace, thus an issue for the Font Loading spec in CSS.

@annevk
Copy link
Member

annevk commented Aug 6, 2020

There's also https://github.com/WICG/local-font-access now. Closing this.

@annevk annevk closed this as completed Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements integration needs implementer interest Moving the issue forward requires implementers to express interest security/privacy There are security or privacy implications topic: canvas
Development

No branches or pull requests

4 participants