View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000278 | context | public | 2009-10-13 14:08 | 2012-12-10 12:13 | |
Reporter | wolf | Assigned To | Hans Hagen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000278: Fonts with dots in the filename are not loaded | ||||
Description | When loading fonts with dots in the filename they are not loaded by ConTeXt. In the following example the first font wasn't loaded while the second was. \starttext {\definedfont[name:linuxbiolinumo]Linux Biolinum} {\definedfont[name:linuxbiolinumobold]Linux Biolinum Bold} \stoptext The file names of the fonts had been: linuxbiolinumo Linux Biolinum O /Users/wolf/Library/Fonts/Biolinum_Re-0.4.1.otf linuxbiolinumobold Linux Biolinum O Bold /Users/wolf/Library/Fonts/Biolinum_Bd.otf The fonts can be obtained from http://sourceforge.net/projects/linuxlibertine/ | ||||
Tags | No tags attached. | ||||
2009-10-13 14:08
|
|
|
This is because file.addsuffix() believes that *any* dot followed by an alphanumeric means that the suffix should not be added. This may be correct in other situation, but not here. For adding an extension that may or may not be in the string already, a much better definition would be this: function file.addsuffix(filename, suffix) if not string.find(filename,"%.'..suffix..'$") then return filename .. "." .. suffix else return filename end end |
|
hard to check as these fonts (on tex live) now have the usual mnemonic names |
|
file.adduffix now accepts a third argument (condition) but the problem was more in the resolver |
|
hopefully solved |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-10-13 14:08 | wolf | New Issue | |
2009-10-13 14:08 | wolf | File Added: biolinum.tex | |
2010-02-16 15:09 | Taco | Note Added: 0000424 | |
2010-02-24 17:29 | Hans Hagen | Status | new => assigned |
2010-02-24 17:29 | Hans Hagen | Assigned To | => Hans Hagen |
2010-02-24 17:29 | Hans Hagen | Note Added: 0000434 | |
2010-02-24 17:29 | Hans Hagen | Status | assigned => closed |
2010-02-24 17:29 | Hans Hagen | Resolution | open => fixed |
2010-05-25 14:05 | Hans Hagen | Note Added: 0000544 | |
2010-05-25 14:06 | Hans Hagen | Note Added: 0000545 | |
2010-05-25 14:06 | Hans Hagen | Status | closed => resolved |
2012-12-10 12:13 | Taco | Status | resolved => closed |