On Wed, Dec 4, 2013 at 12:11 PM, Oliver B. Fischer <[email protected]>wrote:
> Hi, > > it is there. The CSS as bundle is referenced via > > http://localhost:8080/bs3test/wicket/resource/com. > profitbricks.wicket.bootstrap.resources.example.bundle. > Bootstrap3Reference/dist/css/bootstrap-theme-ver-1386155341000.css > > But the fonts via > > http://localhost:8080/bs3test/wicket/resource/fonts/ > glyphicons-halflings-regular.woff There is something wrong here. A relative url like ../fonts/glyphicons-halflings-regular.eot?#iefix should be calculated to http://localhost:8080/bs3test/wicket/resource/com.profitbricks.wicket.bootstrap.resources.example.bundle.Bootstrap3Reference/dist /fonts/glyphicons-halflings-regular.eot?#iefix Do you use Wicket bundle (several CSS files combined into one) by chance ? It would break if the bundle doesn't use Bootstrap3Reference.class (or another class in the same package) as a scope. > > > I know that the problem that the fonts referenced directly from the CSS > files. But how can I handle that? > > Viele Grüße > > Oliver > > > Am 04.12.13 12:03, schrieb Martin Grigorov: > > Hi, >> >> Just make sure the font/ folder is next to the css/ folder in your file >> structure. >> >> >> >> On Wed, Dec 4, 2013 at 11:59 AM, Oliver B. Fischer <[email protected] >> >wrote: >> >> Hi, >>> >>> I would like to include all Bootstrap 3 resources via resources >>> references. I managed to in include all CSS files by extending >>> CssResourceReference and specifying a list of dependencies >>> (getDependencies()). >>> >>> But how can I include the fonts provided by Bootstrap? The fonts are >>> referenced directly in the CSS files via >>> >>> src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') >>> format('embedded-opentype'), >>> >>> How can I reference these fonts? >>> >>> Bye, >>> >>> Oliver >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
