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

Add optional argument for font-size #20

Open
orangenschalen opened this issue Dec 11, 2024 · 2 comments
Open

Add optional argument for font-size #20

orangenschalen opened this issue Dec 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@orangenschalen
Copy link

The default font sizes are a bit small (to add a more "objective" criterion: it causes more than 90 characters per line) especially with my preferred font: "Latin Modern Roman 12". If the font-size could be made configurable like the font, that would be great.

@Sematre
Copy link
Owner

Sematre commented Dec 11, 2024

The default size of the letter body is not changed by this template. It only has fixed font sizes for content that is not part of the body.

Here's an overview of the different font sizes thought this template (layout overview):

  • Header (10pt)
  • Sender box (7pt)
  • Annotations box (7pt)
  • Recipient box (10pt)
  • Reference signs (key: 8pt, value: 10pt)
  • Information box (unchanged)
  • Date (unchanged)
  • Subject (unchanged)
  • Body (unchanged)
  • Footer (unchanged)

So am I correct to assume, that the issue is with one (or more) of these sizes and not the body?

The font size of the body parts can be changed as usual like this:

#import "@preview/letter-pro:3.0.0": letter-simple

#set text(16pt)

#show: letter-simple.with(
  // ...
)

@orangenschalen
Copy link
Author

You're mostly correct. All the glyphs are somewhat tiny with the aforementioned font. I used the scaling via

#set text(13pt)

but the rather small address is not nice for the postal workers and the layout starts to looks uneven.
If I create a patch, where all the different fontsizes are calculated as an offset from a global fontsize, such that with the default value for the global fontsize nothing would change, but a global scale up would be possible, would you be interested to merge that?

@Sematre Sematre added the enhancement New feature or request label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants