Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Set default font for schematic PDF #691

Open
nguyen-v opened this issue Oct 15, 2024 · 2 comments
Open

[FEATURE] Set default font for schematic PDF #691

nguyen-v opened this issue Oct 15, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request kicad_bug A problem related to a KiCad issue

Comments

@nguyen-v
Copy link

Fill as much as you can, remove the rest

Is your feature request related to a problem? Please describe.
I have a custom template which uses the default KiCad font for most of the components (useful when working on it, as the default font is much faster to render than other fonts). When printing the schematic to PDF, I like to change the default KiCad font (in the Preferences) to 'Times New Roman' so that the output looks more like Altium.

Describe the solution you'd like
A way to set the default KiCad font to a user-specified one, similar to the color_theme option in the pdf_schematic output. Currently I have my fonts in the kibot_resources/fonts folder in TTF format.

Describe alternatives you've considered
An alternative solution is to manually change all of the text fields in my schematic where the default font is used to 'Times New Roman'. This is not very efficient and I use multiple fonts across the schematic (Arial and Times New Roman), so the 'Edit Text and Graphic Properties' tool wouldn't work well.

Another way to do it manually would be to write a script to add '(face "fontname")' directly in the .kicad_sch files

Additional context
Current output:
image

Desired output:
image

@nguyen-v nguyen-v added the enhancement New feature or request label Oct 15, 2024
@set-soft set-soft added the kicad_bug A problem related to a KiCad issue label Oct 15, 2024
@set-soft
Copy link
Member

Lamentably this isn't currently possible because the kicad-cli tool just ignores the default font.

https://gitlab.com/kicad/code/kicad/-/issues/17715

I could use the GUI, like in old times, but maintaining a GUI export just for this looks a major overkill.
To anybody wanting this feature I'll suggest putting pressure to KiCad maintainers by commenting on the above issue.

@nguyen-v
Copy link
Author

This is a shame, but thanks for having a look at it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kicad_bug A problem related to a KiCad issue
Projects
None yet
Development

No branches or pull requests

2 participants