Giter Club home page Giter Club logo

Comments (5)

hibiyasleep avatar hibiyasleep commented on June 21, 2024 1

pardon for the interruption, before of all, sorry for poor english - I don't read/or/write it often.

anyway, I'm also getting little confusion on it, set key of what?

As long as I understood, fontname said in (object key) is the font that should be replaced, and the value of (object key).replace is the destination font; so when I do set key to CJK fallback font, results should be like below;

fonts:
  Gulim:
    replace: 맑은 고딕
  Gulim: # guide said, set key to (ry), but key of where?
    replace: Roboto

but... this will result in key conflict.


or, may I interpret set key to CJK fallback font as replace destination font to english-only font?

let's make an example, if user wants to replace Gulim to Malgun Gothic, but keep english glyphs in Roboto (which only supports latin characters), then is this what README meant?:

fonts:
  Gulim: # (from)
    replace: 맑은 고딕 # (to)
    <<: *style
  '맑은 고딕': # (from)
    replace: Roboto #(to)

from fontmod.

ysc3839 avatar ysc3839 commented on June 21, 2024 1

@hibiyasleep "CJK fallback font" is a Qt-specific term. Because Qt checks if current font supports character to render. If not, Qt will use another font.
So if the main font is Open Sans, which does not include CJK characters. Qt will fallback to other font. If you want to keep Open Sans for English characters, but only replace CJK characters font, you need to replace only the "CJK fallback font".

But if you want replace Gulim with Malgun Gothic, but keep English characters Roboto. You need to use third-party tools to combine Roboto and Malgun Gothic into one font, and replace Gulim with this custom font.

from fontmod.

ysc3839 avatar ysc3839 commented on June 21, 2024

"key" is the key of yaml objects. https://en.wikipedia.org/wiki/YAML#Basic_components
For example:

foo:
  bar: baz

foo and bar are keys.

from fontmod.

sunaneko-1324 avatar sunaneko-1324 commented on June 21, 2024

you need to set key to CJK fallback font.

i want keep english default font. but tutorial is not shown how to set key.
please example..

from fontmod.

ysc3839 avatar ysc3839 commented on June 21, 2024
fonts:
  SimSun: &zh-cn-font # Chinese (Simplified) fallback font
    replace: Microsoft YaHei
    <<: *style

Here SimSun is the "key".

from fontmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.