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

Support for different styles (Italics, Bold etc) #127

Open
LevitatingBusinessMan opened this issue Jun 14, 2023 · 5 comments
Open

Support for different styles (Italics, Bold etc) #127

LevitatingBusinessMan opened this issue Jun 14, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@LevitatingBusinessMan
Copy link

Could Bold, Italics, Underlined and Strikethrough be added? From what I understand these styles are currently not included.

@LevitatingBusinessMan LevitatingBusinessMan added the enhancement New feature or request label Jun 14, 2023
@LevitatingBusinessMan LevitatingBusinessMan changed the title Support for different styles Support for different styles (Italics, Bold etc) Jun 14, 2023
@Ciubix8513
Copy link
Contributor

Ciubix8513 commented Jun 15, 2023

Adding strikethrough and underlined would be relatively easy, I think. Bold may be achieved by increasing pixel size, tho I'm not sure it will give the desired result.
Fontforge seems to have inbuilt italics generation, tho i'm not sure if that would create the proper result

@Dheatly23
Copy link
Contributor

Normally, font renderers are able to "bold" and "italic" fonts automatically. But sometimes it can go bad.

Italicizing is quite easy, just slant the grid by let's say 15 degrees. Bold can be done by expanding the lines by small amount. Underline and strikethrough is already automatic, since it's just a simple line.

As far as my research goes, Fontforge can't pack all variants into a single file. So there will be a separate file for italic and bold variant.

@LevitatingBusinessMan
Copy link
Author

Normally, font renderers are able to "bold" and "italic" fonts automatically. But sometimes it can go bad.

From my testing Alacritty isn't able to do this. Could be a limitation of Alacritty, I can look into that.

@Dheatly23
Copy link
Contributor

I have tested some ideas and it might work. It's on my fork at branch new-ligatures. I maybe put a proper PR later.

@SirMishaa
Copy link

As far as I'm concerned, the rendering is already good, but it would be much better if the text were a little more bold.

If anyone has solutions for this, I'd be interested.

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

4 participants