Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Nov 5, 2023
1 parent 3ef69f0 commit 4ad049b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ There is a method on the font object that will allow you pass a string of text
to it, as well as the desired size, to give you the approximate width those characters
will take up rendered in that font at that size.

This works for both standard and embedded font.
This works for both standard and embedded fonts.

```php
use Pop\Pdf\Document\Font;
Expand All @@ -526,7 +526,8 @@ $width = $font->getStringWidth('Hello World', 12);
var_dump($width);
```

This will give us the approximate width in points of the string `Hello World` in 12pt:
This will give us the approximate width in points of the string `Hello World` in
12pt Helvetica Bold:

```text
float(66.672)
Expand Down

0 comments on commit 4ad049b

Please sign in to comment.