Code Monkey home page Code Monkey logo

Comments (5)

kenlunde avatar kenlunde commented on May 19, 2024

The punctuation marks that are shown are full-width by default in the Simplified Chinese subset OTFs and Simplified Chinese OTC font instances. What is being invoked is the 'palt' GPOS feature, which is turned on if the 'kern' GPOS feature is present and turned on. My guess is that Qt 4 automatically invokes the 'kern' GPOS feature, which is present in all Source Han Sans font resources, which has the effect of also turning on the 'pwid' GPOS feature, which is present. While actual kerning is not being used, because these glyphs don't have any kerning values (because none were deemed necessary), they are getting proportional (actually, half-width, if you look at the actual values) metrics via the 'palt' GPOS feature.

Adobe Song Std L doesn't exhibit this because it lacks both the 'palt' and 'kern' GPOS features. The same is true of Droid Sans Fallback. It is interesting that your screenshot suggests that Qt 5 fixes this.

from source-han-sans.

ukyoi avatar ukyoi commented on May 19, 2024

Thanks, Dr. Ken Lunde.

from source-han-sans.

kenlunde avatar kenlunde commented on May 19, 2024

Thank you for closing this. I am not familiar with Qt 4. If there is a toggle for turning off kerning, you should try doing that to confirm that the 'palt' GPOS feature is no longer turned on.

from source-han-sans.

ukyoi avatar ukyoi commented on May 19, 2024

You are right. The width of punctuations looks nice when kerning is set off. I'll report the bug to Qt project properly when I have enough time. Thanks again.

from source-han-sans.

kenlunde avatar kenlunde commented on May 19, 2024

Many thanks for checking this.

from source-han-sans.

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.