We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f9319 commit 3f14d64Copy full SHA for 3f14d64
README.md
@@ -14,7 +14,8 @@ Usage Example
14
-------------
15
16
### Base font information
17
-```
+
18
+```php
19
$font = \FontLib\Font::load('fontfile.ttf');
20
$font->parse(); // for getFontWeight() to work this call must be done first!
21
echo $font->getFontName() .'<br>';
@@ -28,14 +29,16 @@ $font->close();
28
29
```
30
31
### Font Metrics Generation
32
33
34
$font = FontLib\Font::load('fontfile.ttf');
35
$font->parse();
36
$font->saveAdobeFontMetrics('fontfile.ufm');
37
38
39
### Create a font subset
40
41
42
43
44
$font->setSubset("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ.:,;' (!?)+-*/== 1234567890"); // characters to include
0 commit comments