File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ Usage Example
14
14
-------------
15
15
16
16
### Base font information
17
- ```
17
+
18
+ ``` php
18
19
$font = \FontLib\Font::load('fontfile.ttf');
19
20
$font->parse(); // for getFontWeight() to work this call must be done first!
20
21
echo $font->getFontName() .'<br >';
@@ -28,14 +29,16 @@ $font->close();
28
29
```
29
30
30
31
### Font Metrics Generation
31
- ```
32
+
33
+ ``` php
32
34
$font = FontLib\Font::load('fontfile.ttf');
33
35
$font->parse();
34
36
$font->saveAdobeFontMetrics('fontfile.ufm');
35
37
```
36
38
37
39
### Create a font subset
38
- ```
40
+
41
+ ``` php
39
42
$font = FontLib\Font::load('fontfile.ttf');
40
43
$font->parse();
41
44
$font->setSubset("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ.:,;' (!?)+-*/== 1234567890"); // characters to include
You can’t perform that action at this time.
0 commit comments