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

Resize fonts relatively #23

Open
simmel opened this issue Jul 27, 2020 · 1 comment
Open

Resize fonts relatively #23

simmel opened this issue Jul 27, 2020 · 1 comment

Comments

@simmel
Copy link
Owner

simmel commented Jul 27, 2020

#7 fixed so we resize all fonts specified but we resize them all to the same size.

When you specify multiple fonts some of them might be different sizes, e.g:

urxvt.font: xft:Inconsolata:pixelsize=12,xft:Symbola:size=8,xft:Noto Emoji:size=8

How to

Split up update_font_size in:

  • get_updated_font_size which calculates the font size we're supposed to set for a given font
  • set_font_size which sets the font size for a given font
  • And do something like $current =~ s/$regex/set_font_size(get_updated_font_size($something?))/ge if ($newsize > 0); I can't exactly remember the syntax and how to get the match into the function.

There are others who also has noticed that this is a problem but solved it another way.

@elandorr
Copy link

+1
Some very annoying people shit emojis everywhere and urxvt handles them badly or not at all. One workaround (that itself is a failure) is to use Symbola at half the size. (too small to fluently recognize, but at least it displays something)

Not a perl whiz or urxvt config guru or I'd give it a shot myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants