|   | 34 |   | 
|---|
|   | 35 | In the following example, the font file at 'data/trilobyte.ttf' is loaded and registered with Rocket with the family name, style and weight settings specified in the file itself.  | 
|---|
|   | 36 |   | 
|---|
|   | 37 | {{{  | 
|---|
|   | 38 | Rocket::Core::FontDatabase::LoadFontFace("data/trilobyte.ttf");  | 
|---|
|   | 39 | }}}  | 
|---|
|   | 40 |   | 
|---|
|   | 41 | In this example, the font file is loaded with overrides for the name, style and weight.  | 
|---|
|   | 42 |   | 
|---|
|   | 43 | {{{  | 
|---|
|   | 44 | Rocket::Core::FontDatabase::LoadFontFace("data/trilobyte_b.ttf",  | 
|---|
|   | 45 |                                          "Trilobyte",  | 
|---|
|   | 46 |                                          Rocket::Core::Font::STYLE_NORMAL,  | 
|---|
|   | 47 |                                          Rocket::Core::Font::WEIGHT_BOLD);  | 
|---|
|   | 48 | }}}  | 
|---|
|   | 49 |   | 
|---|
|   | 50 | These fonts would be specified in RCSS with the following rules:  | 
|---|
|   | 51 | {{{  | 
|---|
|   | 52 | body  | 
|---|
|   | 53 | {  | 
|---|
|   | 54 |     font-family: Trilobyte;  | 
|---|
|   | 55 | }  | 
|---|
|   | 56 |   | 
|---|
|   | 57 | strong  | 
|---|
|   | 58 | {  | 
|---|
|   | 59 |     font-weight: bold;  | 
|---|
|   | 60 | }  | 
|---|
|   | 61 | }}}  |