Using CSS styles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary  | 
				A WASSERMANN (talk | contribs) No edit summary  | 
				||
| Line 16: | Line 16: | ||
.  | .myDefaultFont {  | ||
     font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;  |      font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;  | ||
}  | }  | ||
| Line 23: | Line 23: | ||
</html>  | </html>  | ||
<jsxgraph width="600" height="600">  | <jsxgraph width="600" height="600">  | ||
JXG.Options.text.cssClass = 'myDefaultFont';  | |||
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5,5,5,-5]});  | var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5,5,5,-5]});  | ||
| Line 31: | Line 33: | ||
             fontSize:20  |              fontSize:20  | ||
           });  |            });  | ||
var p = board.create('point', [0,0]);  | |||
</jsxgraph>  | </jsxgraph>  | ||
Revision as of 09:09, 10 October 2012