1. 31 Oct, 2013 1 commit
  2. 01 Feb, 2013 1 commit
    • Akira TAGOH's avatar
      Bug 23757 - Add mode="delete" to <edit> · 20191810
      Akira TAGOH authored
      Add two edit mode, "delete" and "delete_all".
      what values are being deleted depends on <test> as documented.
      if the target object is same to what is tested, matching value there
      will be deleted. otherwise all of values in the object will be deleted.
      so this would means both edit mode will not take any expressions.
      
      e.g.
      
      Given that the testing is always true here, the following rules:
      
        <match>
          <test name="foo" compare="eq">
            <string>bar</string>
          </test>
          <edit name="foo" mode="delete"/>
        </match>
      
      will removes "bar" string from "foo" object. and:
      
        <match>
          <test name="foo" compare="eq">
            <string>foo</string>
          </test>
          <edit name="bar" mode="delete"/>
        </match>
      
      will removes all of values in "bar" object.
      20191810
  3. 31 Jan, 2013 1 commit
    • Akira TAGOH's avatar
      Bug 59385 - Do the right thing for intermixed edit and test elements · d26fb23c
      Akira TAGOH authored
      This changes allows to have multiple mathcing rules in one <match> block
      in the same order.
      After this changes, the following thing will works as two matching rules:
      
      	<match>
      		<!-- rule 1 -->
      		<test name="family" compare="eq">
      			<string>foo</string>
      		</test>
      		<edit name="foo" mode="append">
      			<string>foo</string>
      		</edit>
      		<!-- rule 2 -->
      		<test name="foo" compare="eq">
      			<string>foo</string>
      		</test>
      		<edit name="foo" mode="append">
      			<string>bar</string>
      		</edit>
      	</match>
      d26fb23c
  4. 31 Dec, 2012 1 commit
    • Behdad Esfahbod's avatar
      Allow target="font/pattern/default" in <name> elements · 51b00446
      Behdad Esfahbod authored
      Based on idea from Raimund Steger.
      
      For example, one can do something like this:
      
      <match target="font">
        <test name="scalable" compare="eq">
          <bool>false</bool>
        </test>
        <edit name="pixelsizefixupfactor" mode="assign">
          <divide>
            <name target="pattern">pixelsize</name>
            <name target="font"   >pixelsize</name>
          </divide>
        </edit>
        <edit name="matrix" mode="assign">
          <times>
            <name>matrix</name>
            <matrix>
              <name>pixelsizefixupfactor</name> <double>0</double>
              <double>0</double> <name>pixelsizefixupfactor</name>
             </matrix>
          </times>
        </edit>
      </match>
      
      Part of work to make bitmap font scaling possible.  See thread
      discussion:
      
      http://lists.freedesktop.org/archives/fontconfig/2012-December/004498.html
      51b00446
  5. 30 Dec, 2012 1 commit
    • Behdad Esfahbod's avatar
      Parse matrices of expressions · 4f676747
      Behdad Esfahbod authored
      Previously a <matrix> element could only accept four <double> literals.
      It now accepts full expressions, which can in turn poke into the
      pattern, do math, etc.
      4f676747
  6. 09 Oct, 2012 1 commit
  7. 18 May, 2012 1 commit
  8. 14 May, 2012 1 commit
    • Akira TAGOH's avatar
      Bug 19128 - Handling whitespace in aliases · bc4517d8
      Akira TAGOH authored
      Add a new attribute `ignore-blanks' to <test>.
      When this is set to "true", any blanks in the string will be ignored
      on comparison.  This takes effects for compare="eq" or "not_eq" only.
      
      Also changed the behavior of the comparison on <alias> too.
      bc4517d8
  9. 06 Apr, 2012 1 commit
  10. 28 Dec, 2010 1 commit
  11. 09 Dec, 2010 2 commits
    • Akira TAGOH's avatar
      Add editing langset feature. · 3c862aad
      Akira TAGOH authored
      The syntax to add any langset to the langset table looks like:
      
      <match target="scan">
          <test name="family">
              <string>Buggy Sans</string>
          </test>
          <edit name="lang" mode="assign">
              <plus>
                  <name>lang</name>
                  <langset>
                      <string>zh-cn</string>
                      <string>zh-tw</string>
                  </langset>
              </plus>
          </edit>
      </match>
      
      To remove any langset from the langset table:
      
      <match target="scan">
          <test name="family">
              <string>Buggy Sans</string>
          </test>
          <edit name="lang" mode="assign">
              <minus>
                  <name>lang</name>
                  <langset>
                      <string>ja</string>
                  </langset>
              </minus>
          </edit>
      </match>
      3c862aad
    • Akira TAGOH's avatar
      Add charset editing feature. · 857b7efe
      Akira TAGOH authored
      The syntax to add any characters to the charset table looks like:
      
      <match target="scan">
          <test name="family">
              <string>Buggy Sans</string>
          </test>
          <edit name="charset" mode="assign">
              <plus>
                  <name>charset</name>
                  <charset>
                      <int>0x3220</int>    <!-- PARENTHESIZED IDEOGRAPH ONE -->
                  </charset>
              </plus>
          </edit>
      </match>
      
      To remove any characters from the charset table:
      
      <match target="scan">
          <test name="family">
              <string>Buggy Sans</string>
          </test>
          <edit name="charset" mode="assign">
              <minus>
                  <name>charset</name>
                  <charset>
                      <int>0x06CC</int>    <!-- ARABIC LETTER FARSI YEH -->
                      <int>0x06D2</int>    <!-- ARABIC LETTER YEH BARREE -->
                      <int>0x06D3</int>    <!-- ARABIC LETTER YEH BARREE WITH HAMZA ABOVE -->
                  </charset>
              </minus>
          </edit>
      </match>
      
      You could also use the range element for convenience:
      
      ...
                  <charset>
                      <int>0x06CC</int>    <!-- ARABIC LETTER FARSI YEH -->
                      <range>
                          <int>0x06D2</int>    <!-- ARABIC LETTER YEH BARREE -->
                          <int>0x06D3</int>    <!-- ARABIC LETTER YEH BARREE WITH HAMZA ABOVE -->
                      </range>
                  </charset>
      ...
      857b7efe
  12. 26 Oct, 2007 1 commit
  13. 10 Sep, 2006 1 commit
  14. 03 Sep, 2006 1 commit
    • Keith Packard's avatar
      Add FcMatchScan to resolve Delicious font matching issues (bug #6769) · c2c6976d
      Keith Packard authored
      The Delicious family includes one named Delicious Heavy, a bold variant
      which is unfortunately marked as having normal weight. Because the family
      name is 'Delicious', fontconfig accidentally selects this font instead of
      the normal weight variant. The fix here rewrites the scanned data by running
      the scanned pattern through a new substitution sequence tagged with
      <match target=scan>; a sample for the Delicious family is included to
      demonstrate how it works (and fix Delicious at the same time).
      
      Also added was a new match predicate -- the 'decorative' predicate which is
      automatically detected in fonts by searching style names for key decorative
      phrases like SmallCaps, Shadow, Embosed and Antiqua. Suggestions for
      additional decorative key words are welcome. This should have little effect
      on font matching except when two fonts share the same characteristics except
      for this value.
      c2c6976d
  15. 04 Aug, 2006 1 commit
  16. 04 Dec, 2004 1 commit
    • Keith Packard's avatar
      Move existing fonts.conf to fonts.conf.bak · 4f27c1c0
      Keith Packard authored
      Add detection of iconv
      Document new selectfont elements
      Switch to UTF-8 in comment
      Add fullname, and family/style/fullname language entries
      Respect selectfont/*/glob
      Add support for selectfont
      Add multi-lingual family/style/fullname support
      Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
      Add new FcPatternRemove/FcPatternAppend. FcObjectStaticName stores computed
          pattern element names which are required to be static.
      4f27c1c0
  17. 16 Apr, 2003 1 commit
  18. 15 Apr, 2003 1 commit
  19. 12 Feb, 2003 1 commit
  20. 22 Aug, 2002 1 commit
  21. 11 Aug, 2002 1 commit
  22. 31 Jul, 2002 1 commit
  23. 19 Jun, 2002 1 commit
  24. 23 May, 2002 1 commit
  25. 21 May, 2002 1 commit
  26. 14 Feb, 2002 1 commit