summaryrefslogtreecommitdiff
path: root/fonts.dtd
AgeCommit message (Collapse)AuthorFilesLines
2013-10-31Correct DTDAkira TAGOH1-1/+1
2013-02-01Bug 23757 - Add mode="delete" to <edit>Akira TAGOH1-1/+1
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.
2013-01-31Bug 59385 - Do the right thing for intermixed edit and test elementsAkira TAGOH1-1/+1
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>
2012-12-30Allow target="font/pattern/default" in <name> elementsBehdad Esfahbod1-1/+2
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
2012-12-29Parse matrices of expressionsBehdad Esfahbod1-1/+1
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.
2012-10-09Fix syntax errors in fonts.dtd.Akira TAGOH1-5/+5
Patch from Steve Simpson
2012-05-18Bug 20411 - fontconfig doesn't match FreeDesktop directories specsAkira TAGOH1-2/+8
Allows reading configuration files, fonts and cache files from the directories where the XDG Base Directory Specification defines. the old directories are still in the configuration files for the backward compatibility.
2012-05-14Bug 19128 - Handling whitespace in aliasesAkira TAGOH1-0/+1
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.
2012-04-06Bug 22862 - <alias> ignores <match> <test>sAkira TAGOH1-1/+1
Allow to use the test elements in the alias element.
2010-12-28Add <range> support for <blank> into the DTDBehdad Esfahbod1-1/+1
2010-12-09Add editing langset feature.Akira TAGOH1-2/+3
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>
2010-12-09Add charset editing feature.Akira TAGOH1-2/+2
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> ...
2007-10-25Respect "binding" attribute in <alias> entries.Keith Packard1-0/+2
This makes creating "same" aliases for renamed font families far easier.
2006-09-09Include cachedir in fonts.dtd.Keith Packard1-3/+4
Fonts.dtd <fontconfig> element was missing the new cachedir element.
2006-09-02Add FcMatchScan to resolve Delicious font matching issues (bug #6769)Keith Packard1-1/+5
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.
2006-08-042006-08-04 Keith Packard (keithp@keithp.com) reviewed by: plamPatrick Lam1-0/+12
Make cache directories configurable. Simplify and correct some code which deals with per-directory caches.
2004-12-04Move existing fonts.conf to fonts.conf.bakKeith Packard1-0/+19
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.
2003-04-16bool was misdeclared in DTDKeith Packard1-1/+1
2003-04-15Fix unary operator parsing. Add floor, ceil, trunc and round unaryKeith Packard1-1/+5
operators
2003-02-12Add "same" binding for edits to inherit binding from matched elementKeith Packard1-1/+1
2002-08-22Add contains/not_contains, fix LangSet equal operator to use FcLangEqualKeith Packard1-2/+4
2002-08-11Fix weird first/not-first lameness in font matches, replacing with targetrc2fcpackage_rc2Keith Packard1-0/+4
qualifiers on test elements. Update library manual page.
2002-07-31Add binding property to edit elementKeith Packard1-1/+2
2002-06-19Add ref counting to font config patterns so that FcFontSort return valuesKeith Packard1-1/+4
are persistant
2002-05-23Fonts.dtd had "blanks" instead of "blank"Keith Packard1-2/+2
2002-05-21Fix xmkmf build process for fontconfigKeith Packard1-3/+10
2002-02-14Initial revisionKeith Packard1-0/+165