Is the setting:whatever stuff part of core Moodle or do you need to add that to the csspostprocessor yourself?
I'm getting my theme CSS from upstream sources, so it would actually be best for me if I didn't have to manually edit the CSS at all in order to get it to work with Moodle. So I'm currently doing this:
function processor($css, $theme) {
$find[] = "../img/glyphicons-halflings";
$replace[] = current_theme() . '/pix/glyphicons-halflings';
$find[] = "../font/fontawesome-webfont";
$replace[] = current_theme() . '/font/fontawesome-webfont';
return str_replace($find, $replace, $css);
}
As far as I can tell (and semi-confirmed by one of the comments in the code you point to) the CSS and images are always created from the same place in the theme directory, so you can create relatively straightforward relative links as long as you know the theme name as that gives you the directory.
So I think just hardcoding "theme_name/folder_within_theme/item.ext" should work for fonts (and images too, if you know for sure what the extension is going to be).
The only difficulty then is that if you rename the font directory then things will break until you do some find'n'replace. It might make sense to have a
theme
variable that can be used for those purposes.
edit: so that explains why people keep leaving links to non-existing docs pages, you need to escape the double square brackets!