Parse locally installed font (rather than local font file) #787
Replies: 3 comments 1 reply
-
Please see #571. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sarah,
With the exception of Chrome using https, 'window.queryLocalFonts()' is
not available.
In a general sense the answer to this is probably 'no you can't, it's
explicitly prevented by browser security'. Is this a reasonable conclusion?
Thanks
John
…On 26/01/2025 16:50, Sarah C. Groß wrote:
Please see #571 <#571>.
—
Reply to this email directly, view it on GitHub
<#787 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMJYZC2EU2VJ2EODJBEHDT2MUG6RAVCNFSM6AAAAABV4TPYDSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJVHE4DSNQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok. It's good to know that I'm not a complete idiot and have some grasp.
I'll work round this.
Thanks again
…On 27/01/2025 09:53, Sarah C. Groß wrote:
In a general sense the answer to this is probably 'no you can't,
it's explicitly prevented by browser security'. Is this a
reasonable conclusion?
Absolutely (unfortunately)!
—
Reply to this email directly, view it on GitHub
<#787 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMJYZGTJQEDZWBWYNFEFLL2MX6Z3AVCNFSM6AAAAABV4TPYDSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJWG4YDCOA>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My ignorance of fonts in Javascript is almost complete but I have managed to extract glyph data from the Google font set using opentype.js,and display it using WebGL as part of a feasibility check for the use of OpenGL in a browser for some robotic work (www.itemkey.co.uk).
I know that in general it's not possible to use local font information for security reasons, but it is possible to check if specific fonts are locally loaded....
document.fonts.check(
10px system-ui
) for instance will return true I imagine for all browsers for the system-ui font.Is it possible to parse such a font (which presumably must include its glyph data) through opentype returning the same object as a fetch on a URL?
Thanks
John
Beta Was this translation helpful? Give feedback.
All reactions