fortune-sheet icon indicating copy to clipboard operation
fortune-sheet copied to clipboard

how to use additional font family(SF Hello) in fortune sheet

Open dtiwarii opened this issue 1 year ago • 3 comments

Please provide your input

dtiwarii avatar Jun 23 '23 03:06 dtiwarii

try overriding the css for .fortune-container with the font-family you want?

sanchit3008 avatar Jun 23 '23 10:06 sanchit3008

try overriding the css for .fortune-container with the font-family you want?

we want option in font-family dropdown so that user can change font. Please Help

dtiwarii avatar Jun 26 '23 10:06 dtiwarii

This could be fixed using the experimental Local Font Access API. This way you could give the user a selection of all his installed fonts.

You may want to try do a PR.

Akxe avatar Jun 26 '23 13:06 Akxe

@Akxe the local font access api is still experimental and would be an unsafe addition for production applications. for now, we will close this issue. any requests for font additions can be made via opening a new issue. thanks.

sanchit3008 avatar Apr 05 '24 09:04 sanchit3008

@sanchit3008 Given that it is supported in chromium, it is in over 50% of the market. Others (Firefox) look at it favourably, but are waiting for the normalization of the standard...

Akxe avatar Apr 05 '24 14:04 Akxe

@Akxe that is a fair point, perhaps we can have a POC pull request ready, and we merge it when the standard is normalised.

sanchit3008 avatar Apr 05 '24 14:04 sanchit3008