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

Make width blendable #554

Closed
derVedro opened this issue May 25, 2020 · 5 comments
Closed

Make width blendable #554

derVedro opened this issue May 25, 2020 · 5 comments
Milestone

Comments

@derVedro
Copy link

Hey, I am trying to mimic Source Code Pro with its wider look for my IDE. Source Code Pro is already a nice font but since I saw the superiorness of Iosevka I don't want miss that. So build my onw Iosevka ttf variant. I spend some time trying stuff and replace glyphs in private-build-plans.toml is quick task. But I don't realy understand what is going on with font wideness. I ended with setting width to 530 in parameters.toml. I am not quite sure that's the right place to do it. I got an extended Iosevka font that is nice but I feel like I missed something. e.g I do not understand what buildPlans.iosevka-custom.widths.extended section in private-build-plans.toml is for? I played with shape setting of it in vanilla example config, but I couldn't see any differences.

@be5invis
Copy link
Owner

The parameters in [buildPlans.iosevka-custom.widths.extended] are width grades instead actual character width. Currently only two width grades (5 and 7) are available.

@derVedro
Copy link
Author

derVedro commented Jun 7, 2020

It's pity that overriding width in [buildPlans.iosevka-custom.metric-override] in private build plan doesn't change anything. Two grades are not fine enough for me. I mean 7 is too narrow and 8 is too wide. I'm afraid I have to dive into wd- magic. Can you give me some hints, what that wd-N.multiplies are for? Are they the grades?

@be5invis
Copy link
Owner

be5invis commented Jun 7, 2020

I see, you want things like wd-7.5?
Fine let me change the title...

@be5invis be5invis changed the title [question] a proper way to set up width Make width blendable Jun 7, 2020
@be5invis be5invis added this to the 3.2 milestone Jun 7, 2020
@be5invis
Copy link
Owner

be5invis commented Jun 7, 2020

Now, in your private-build-plans.toml you can specify your characters' width like this:

[buildPlans.iosevka-custom.widths.normal]
shape = 500        # Unit Width, measured in 1/1000 em.
menu  = 5          # Width grade for the font's names.
css   = "normal"   # "font-stretch' property of webfont CSS.

[buildPlans.iosevka-custom.widths.extended]
shape = 576
menu  = 7
css   = "expanded"

We now use the actual "unit" width in the config file to customize the width. Older grades are still supported but will show up a warning and converted to the new width when building.

@be5invis be5invis closed this as completed Jun 7, 2020
@derVedro
Copy link
Author

derVedro commented Jun 7, 2020

Mother of god! That is it! It works like a charm.Thank you!

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

No branches or pull requests

2 participants