Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F fontconfig
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 182
    • Issues 182
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fontconfig
  • fontconfig
  • Issues
  • #135
Closed
Open
Issue created Nov 24, 2018 by Marguerite Su@marguerite

Minus charset in scan doesn't work

Hi,

I am currently working on blacklisting whitespace char (0x0020) from Noto Color Emoji.

And I know it's possible because of this fixed bug#31969

But unluckily it doesn't work.

I created a testcase like the original bug reporter Akira TAGOH:

    <match target="scan">
            <test name="family">
                    <string>VL Gothic</string>
            </test>
            <edit name="charset" mode="assign">
                    <minus>
                            <name>charset</name>
                            <charset>
                                    <range>
                                        <int>0x0030</int>
                                        <int>0x00FF</int>
                                    </range>
                            </charset>
                    </minus>
            </edit>
    </match>

I should get result like this:

FcConfigSubstitute test scan any family Equal "VL Gothic"
Substitute match
    scan any family Equal "VL Gothic"
edit
    Edit charset Assign charset Minus charset
;

Append list before 
Append list after  
    0000: 00000000 ffffffff fffffffe 7fffffff 00000000 ffffffff ffffffff fff

fffff

But I can only find the first part. There is no 'Append list after' stuff at all. I doubt if it is applied.

And in the final match, I can still view lots of chars that should be substracted:

FcConfigSubstitute editPattern has 42 elts (size 48)
    family: "VL Gothic"(s) "VL ゴシック"(s)
    ...
    charset:
    ...
      0030: ffffffff 38ff0001 fffffffe ffffffff fe7fffff ffffffff ffffffff ffffffff
      0031: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ffff0000
      0032: 00000000 ffffffff fffe000f 00000000 ffffffff ffffffff ffffffff 7fffffff
      0033: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 7fffffff
      0047: 80001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ...

It doesn't seem to work at all.

Am I missing something? or this feature has been removed from fontconfig?

I think something introduced in 2010.12 should work after so many years...

Greetings

Marguerite

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking