View Issue Details

IDProjectCategoryView StatusLast Update
0000278contextpublic2012-12-10 12:13
Reporterwolf Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000278: Fonts with dots in the filename are not loaded
DescriptionWhen 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/
TagsNo tags attached.

Activities

2009-10-13 14:08

 

biolinum.tex (130 bytes)

Taco

2010-02-16 15:09

administrator   ~0000424

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

Hans Hagen

2010-02-24 17:29

manager   ~0000434

hard to check as these fonts (on tex live) now have the usual mnemonic names

Hans Hagen

2010-05-25 14:05

manager   ~0000544

file.adduffix now accepts a third argument (condition) but the problem was more in the resolver

Hans Hagen

2010-05-25 14:06

manager   ~0000545

hopefully solved

Issue History

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