Skip to main content
Question

Font Language Variable


I have read the YouTube tutorial and still cannot find my answer.

My goal is to set up two languages in variables: English and Chinese.

I have set up an English font with the weight " Regular " and the Chinese font did not contain " Regular ", so I had to manually detach it and choose another font-weight. What is the best way to make one set of English and one set of Chinese, and then easily switch to another language?

5 replies

Aaron_Xu
  • New Participant
  • 19 replies
  • August 7, 2024

看不太懂你的需求,你要不用中文详细说一遍


  • Author
  • 2 replies
  • August 7, 2024

如果我想設置兩個語言方便轉換 例如英文H1變成中文H1,但因為字體的Weight , line height 和letter space也不同, 例如英文: Be Vietnam Pro, Weight: Bold, 但中文沒有bold便會死掉了。
怎樣可以setup 兩套語言,然後方便轉換
螢幕截圖 2024-08-07 下午5.26.21


Aaron_Xu
  • New Participant
  • 19 replies
  • August 8, 2024


这样,不知道能不能看懂,创建一个 number 类型的变量应用到字重上,
860 在 SF Pro 中对应的是 Heavy,900 在 Be Vietnam Pro 中对应的是 ExtraBold。这样实现了在不同的语言下使用不同的字重。

至于数字和字重如何对应起来,可以去查阅字体的使用文档,或者你能看看懂 CSS 代码的话,切到开发者模式看这一行。


  • Author
  • 2 replies
  • August 8, 2024

感謝你的幫忙 我先試一下 ! 謝謝
看來font weight 跟line height也要各自定


Aaron_Xu
  • New Participant
  • 19 replies
  • August 8, 2024

推荐是将 Font Family、Weight 等等这些变量都包含在一个字体样式里,这样对新的文字图层直接应用字体样式就可以了,不然每个文字图层都要一个个赋值很麻烦。


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings