Solved. Quick answer, use a fully formed (not relative) path to font files in userstyle.css
klap-in Can you find the font-face back in the lib/exe/css.php? Please check how it looks like there, and probably that gives an idea what is needed?
Got the clue from lib/exe/css,php where it says,
* Load the contents of the css/less file and adjust any relative paths/urls (relative to this file) to be
* relative to the dokuwiki root: the web root (DOKU_BASE) for most files; the file system root (DOKU_INC)
* for less files.
Since the urls are being rewritten anyways I gave up on a relative path and used absolute path instead. Here is the working version.
@font-face {
font-family: 'Lobster';
src: url('https://www.mydomain.com/wiki/lib/fonts/lobster-regular-webfont.woff2') format('woff2'),
url('https://www.mydomain.com/wiki/lib/fonts/lobster-regular-webfont.woff') format('woff');
}
Hope this helps someone else too.
Thanks.