Giter VIP home page Giter VIP logo

Comments (3)

kenlunde avatar kenlunde commented on May 29, 2024

The main difference between Source Han Sans and Source Han Serif is that the Regular weights in the latter are style-linked to the Bold weights. I cannot see this being an issue with the Super OTC, but rather a fontconfig issue. It is highly likely that this is the first time that fontconfig has been asked to support such a font, so it is not a shock that this issue arose. Un–style-linking the fonts is a nonstarter.

Also, when Source Han Sans Version 2.000 is released, its Regular weights will also be style-linked to its Bold weights.

from source-han-serif.

trueroad avatar trueroad commented on May 29, 2024

Thank you for your description.
I understood that the way to specify the font has been changed by style-link.

I've noticed that the fonts can be specified in the following way by fontconfig.

$ fc-match -v "Source Han Serif:style=Regular" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSerif/SourceHanSerif.ttc"(w)
        index: 8(i)(w)
        postscriptname: "SourceHanSerif-Regular"(w)

$ fc-match -v "Source Han Serif:style=Bold" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSerif/SourceHanSerif.ttc"(w)
        index: 20(i)(w)
        postscriptname: "SourceHanSerif-Bold"(w)

$ fc-match -v "Source Han Sans:style=Regular" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSans/SourceHanSans.ttc"(w)
        index: 12(i)(w)
        postscriptname: "SourceHanSans-Regular"(w)

$ fc-match -v "Source Han Sans:style=Bold" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSans/SourceHanSans.ttc"(w)
        index: 24(i)(w)
        postscriptname: "SourceHanSans-Bold"(w)

I used a font name containing a weight name.
Current Source Han Sans all weights can be specified by this way.

$ fc-match -v "Source Han Sans Regular" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSans/SourceHanSans.ttc"(w)
        index: 12(i)(w)
        postscriptname: "SourceHanSans-Regular"(w)

$ fc-match -v "Source Han Sans Bold" | grep -e file -e index -e postscript
        file: "/home/trueroad/.local/share/fonts/SourceHanSans/SourceHanSans.ttc"(w)
        index: 24(i)(w)
        postscriptname: "SourceHanSans-Bold"(w)

But, Source Han Serif Regular and Bold cannot be specified by this way.
So I wrote this issue.

$ fc-match -v "Source Han Serif Regular" | grep -e file -e index -e postscript
        file: "/usr/share/texmf-dist/fonts/truetype/public/ipaex/ipag.ttf"(w)
        index: 0(i)(w)
        postscriptname: "IPAGothic"(w)

$ fc-match -v "Source Han Serif Bold" | grep -e file -e index -e postscript
        file: "/usr/share/texmf-dist/fonts/truetype/public/ipaex/ipag.ttf"(w)
        index: 0(i)(w)
        postscriptname: "IPAGothic"(w)

Anyway, I will use the former way instead of latter way.
Thank you.

from source-han-serif.

kenlunde avatar kenlunde commented on May 29, 2024

Yes, when fonts are style-linked, it changes how they need to be specified in certain environments.

from source-han-serif.

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.