Bloom.Publish.FontFileFinder.GetFilesForFont C# (CSharp) Method

GetFilesForFont() public method

This is really hard. We somehow need to figure out what font file(s) are used for a particular font. http://stackoverflow.com/questions/16769758/get-a-font-filename-based-on-the-font-handle-hfont has some ideas; the result would be Windows-specific. And at some point we should ideally consider what faces are needed. For now we use brute force. 'Andika New Basic' -> AndikaNewBasic-{R,B,I,BI}.ttf Arial -> arial.ttf/ariali.ttf/arialbd.ttf/arialbi.ttf 'Charis SIL' -> CharisSIL{R,B,I,BI}.ttf (note: no hyphen) Doulos SIL -> DoulosSILR
public GetFilesForFont ( string fontName ) : IEnumerable
fontName string
return IEnumerable
        public IEnumerable<string> GetFilesForFont(string fontName)
        {
            var group = GetGroupForFont(fontName);
            if (group == null)
                return new string[0];
            return group;
        }