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

Question: How to edit Source Han Sans #500

Open
3 tasks done
weiweihuanghuang opened this issue Jul 15, 2024 · 1 comment
Open
3 tasks done

Question: How to edit Source Han Sans #500

weiweihuanghuang opened this issue Jul 15, 2024 · 1 comment

Comments

@weiweihuanghuang
Copy link

Prerequisites

  • If you are reporting an issue that affects glyphs for characters for a particular region or regions, did you verify that the characters are within the supported scope of the region or regions? This generally means GB 18030 or Tōngyòng Guīfàn Hànzìbiǎo (通用规范汉字表) for China, Big Five or CNS 11643 Planes 1 & 2 for Taiwan, HKSCS-2016 for Hong Kong, JIS X 0208, JIS X 0212, and JIS X 0213 for Japan, and KS X 1001 and KS X 1002 for Korea.
  • Did you thoroughly search the open and closed issues to avoid reporting a duplicate issue?
  • Did you go through the official font readme file to better understand the scope of the project, to include the Known Issues section at the very end?

Description

This isn't an issue but a question. What is the best way to edit Source Han Sans. I've been asked to create a scaled and interpolaed version of it to match the body size and weight of a Latin typeface. I can't find this documented anywhere.

@punchcutter
Copy link
Member

It depends on your tools and what exactly you need, but probably the easiest way to make a scaled and interpolated font is to first make an instance from the existing variable font. If you need TTF it works well with fontTools:

fonttools varLib.instancer -o custom-weight.ttf SourceHanSans-VF.ttf wght=456

You can also do OTF with that, but there was recent work on that so I'm not sure if it's 100% working right now. You can also use tx from the afdko with something like

tx -ufo -U 456 -o custom_weight.ufo SourceHanSans-VF.otf

That will make a UFO you can then edit however you like. You can scale that in lots of tools or apps or you can use rotatefont to scale

rotatefont -ufo -matrix 1.5 0 0 1.5 0 0 -o custom_weight_scaled.ufo custom_weight.ufo

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