Open bobotdls opened 6 months ago
@bobotdls Not really a Print designer issue as far as i know. Fonts you are using doesn't support Thai. Can you please share the name of the font .
Bai Jamjuree & sans-serif These two font I use in customize print format in CSS
Only on generating the pdf... If I print it's show the right font
Only on generating the pdf... If I print it's show the right font
Yeah, because we don't have Bai Jamjuree
font that is why it is showing this and on preview it is showing probably because you may have fonts installed on local machine that support Thai
after I download the said font, where do I put the file on the eprnext folder?
you just install it on the server/computer
ok thanks... Now it's working..
In this line it would be really nifty if we can set fonts by just looking them up on Google. I want to set this font, https://fonts.google.com/specimen/Figtree but I cannot because the existing font list is a static list.
@PhantomKunai problem is all fonts have different fontWeights and Italic fontWeights. we need this information for it to work. we can get them from google's font api but it is paid.
we can add as many fonts we want just add it to the list and raise pr i will merge it.
@maharshivpatel Ah I see. Perhaps one may contribute widely used fonts to the list, and maybe we can find some way to add fonts through a custom app for those who have some obscure font requirements or they are really looking to work with custom fonts.
Is my understanding correct that only these fonts are displayed in the font selection box?
Maybe even some way to fill those font parameters in manually somewhere here or perhaps in Print Designer Settings page, if there is one.
@PhantomKunai Yes, this list is rendered in the selection box.
we can make a field in print_format to add custom fonts but at that point we can just add it inside print_designer UI only.
adding fonts from custom app is possible but we first need some kind of plugin system that other users can hook into like frappe framework.
Not displaying right text in Thai font It's display a box only![Capture](https://github.com/frappe/print_designer/assets/38277965/3a468263-98c2-4b1f-b9f1-56b554226151)