Open Kush-4826 opened 2 months ago
Similar problem here, only I set my custom typeface in the VS Code but what's printed is the default Menlo. Suppose this problem is either related to Non-System typefaces or when the fonts have format of .otf
Sorry to keep you both waiting, we have some build problems blocking release so the backlog has been building. First I'll get the build going, then the low hanging fruit, then I'll put some time into this one.
While I'm getting to this, would you please
Print and Close
in your settings so the browser print dialog doesn't open when the print job is sent to the browser then trigger the problem and inspect the page to tell me what font-family is being specified for the incorrectly formatted textIf you can determine which CSS class is actually contributing the value in use, that would be super handy.
Hi Peter!
Thanks for reaching to me.
I have been doing some very tiny experiments myself and this is what I have discovered. Hopefully it will be of any help.
First I’ll answer your questions.
I have confirmed that all four lines (font-family, font-size, line-height and padding bottom) are manually adjustable in situ and the changes will take effect realtime.
If I change the default font-family to another ’System' Font, say ‘Comic Sans MS', the rendering will change as well. But if I change the default font-family to a non-system Font (those I installed later), the rending will not change at all, regardless of the font format.
Hopefully my findings could be of any help.
Coding Wishes, Sylvester
Peter Wone @.***> 於 2024年5月9日 09:11 寫道:
While I'm getting to this, would you please
Tell me what platform you're using (Win/Linux/MacOS). Tell me what browser you're using (a Chromium derivative, Firefox, Safari or something else) Disable Print and Close in your settings so the browser print dialog doesn't open when the print job is sent to the browser Inspect the page and see what font-family is being applied to the source text If you can determine where the value came from via CSS that would be super handy.
— Reply to this email directly, view it on GitHub https://github.com/PDConSec/vsc-print/issues/305#issuecomment-2101746871, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAHWIPZ2674G2CJJFXUHUQ3ZBLENVAVCNFSM6AAAAABGZ4EAAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRG42DMOBXGE. You are receiving this because you commented.
Similar problem here, only I set my custom typeface in the VS Code but what's printed is the default Menlo. Suppose this problem is either related to Non-System typefaces or when the fonts have format of .otf
It is almost a certainty that this or something similar is the problem. The browser must be able to resolve the typeface from the name. This hasn't been an issue for symbolic names like serif
or monospace
and on Windows where most people use it, the typeface name reported by VSCode settings has been correctly resolved by all common browsers, but this issue suggests this does not hold for MacOS.
I do have a Mac for the specific purpose of debugging this kind of problem so I'll set it up and experiment with different fonts. It may be necessary to invent some kind of setting for mapping names if there isn't a single mapping function.
If you're interested in investigating this then you could save the page and supporting resources to a folder (I assume this is possible with Safari, certainly Chrome derivatives can do it). Then you can tinker with the font-family in the CSS until you figure out what to do to the name to get it to resolve.
The Type face that is selected in the VS Code is not applied to the prints. The prints appear in the browser default Serif font.
This is the Default Font Family Setting in the IDE
This is What the code looks like in the IDE
And this is what the Print looks like