buntarb / closure-stylesheets

Automatically exported from code.google.com/p/closure-stylesheets
Apache License 2.0
0 stars 0 forks source link

@font-face Support #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The compiler seems to stumble when running across this line: 

@font-face { 
  font-family: 'MetaSerifMedium'; 
  src: url('/font/MetaSerifWeb-Medium.eot?') format('eot'), url('/font/ 
MetaSerifWeb-Medium.woff') format('woff'); 
} 

With this error: 

Compiler parsing error: Parse error in gss/app.gss at line 2 column 
16: 
  font-family: 'MetaSerifMedium'; 
               ^ 

com.google.common.css.compiler.ast.GssParserException: Parse error in 
gss/app.gss at line 2 column 16: 
  font-family: 'MetaSerifMedium'; 
               ^ 

at 
com.google.common.css.compiler.ast.GssParserCC.parse(GssParserCC.java: 
162) 
at com.google.common.css.compiler.ast.GssParser.parse(GssParser.java: 
46) 
at 
com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.parseAndPr
int(DefaultCommandLineCompiler.java: 
107) 
at 
com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.compile(De
faultCommandLineCompiler.java: 
96) 
at 
com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.execute(De
faultCommandLineCompiler.java: 
132) 
at 
com.google.common.css.compiler.commandline.ClosureCommandLineCompiler.executeJob
(ClosureCommandLineCompiler.java: 
274) 
at 
com.google.common.css.compiler.commandline.ClosureCommandLineCompiler.main(Closu
reCommandLineCompiler.java: 
347) 

Is it possible to use @font-face w/ the compiler? Perhaps using a 
different syntax? If it's not, is there planned support? 

Original issue reported on code.google.com by patrick.hawks@gmail.com on 21 Nov 2011 at 5:33

GoogleCodeExporter commented 9 years ago
I have a change out for review to support @font-face.

Thank you for filing the bug to help track this, though.

Original comment by bolinf...@gmail.com on 21 Nov 2011 at 9:24

GoogleCodeExporter commented 9 years ago
Support for @font-face added in 
http://code.google.com/p/closure-stylesheets/source/detail?r=d4c81135d9579705e92
5904829a9776c108838e7

Original comment by bolinf...@google.com on 22 Nov 2011 at 9:36