scryber.core icon indicating copy to clipboard operation
scryber.core copied to clipboard

bootstrap css font

Open gmbeas opened this issue 2 years ago • 1 comments

hi, when i want to use bootstrap css it throws the following error to me <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous' />

he layout of component 'text1' failed. No fonts could be found that matched the selector '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"' with styleBold, Italic

I am passing html to pdf, is it necessary to preload the indicated fonts?

I appreciate that you can guide me

gmbeas avatar Oct 06 '21 12:10 gmbeas

Bootstrap default font has a few defaults to fall back to. Loading fonts can be done, see: https://scrybercore.readthedocs.io/en/latest/drawing_fonts.html#font-face-loading

Jogai avatar Oct 06 '21 15:10 Jogai