Results 1 to 3 of 3

Thread: [solved]@font-face : how to force the font directory ?

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    289

    Default [solved]@font-face : how to force the font directory ?

    Hi everyone,

    In Contao 3.2.16.

    In need to use some fonts I want to store locally. I created files/webfont/ directory but @font-face seems to be blocked on assets/css/.
    I suppose this is because Contao only let to use online Google webfont. But the problem is fonts are erased each time one purges script caches (js and css).

    With Contao 2.11, I could use WebFontDownloader (WFL) but it's not compatible with Contao 3.2. So, does anyone know how I could force the path directory I want ?

    Thanks.
    Last edited by charled; 01/12/2015 at 22:46.

  2. #2
    User
    Join Date
    04-01-10.
    Posts
    289

    Default

    Found ! Path address must start by '../../files/…'.

  3. #3
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Contao should resolve pathes to resources in CSS files. If it doesn't you should write a ticket. Did you try setting the path in quotes or double quotes?
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •