Skip to content

Commit

Permalink
Fix a couple of doco typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Dec 21, 2024
1 parent 7e40761 commit 51d402a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/PDF/Font/Loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ parameters:

* `:$index`

The font index> This option is applicable to TrueType collections (`*.ttc`) and OpenType collections (`*.otc`).
The font index. This option is applicable to TrueType collections (`*.ttc`) and OpenType collections (`*.otc`).

* `:$dict`

Expand Down Expand Up @@ -187,11 +187,11 @@ say $file; # /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-BoldOblique.t
my $font = PDF::Font::Loader.load-font: :$file;
```

The `:all` option returns a sequence of all fonts, ordered by best to worst matching. This method may be useful, if you wish to apply your own selection critera.
The `:all` option returns a sequence of all fonts, ordered by best to worst matching. This method may be useful, if you wish to apply your own selection criteria.

The `:best($n)` is similar to `:all`, but returns at most the `$n` best matching fonts.

Any additional options are treated as a [FontConfig](https://pdf-raku.github.io/FontConfig-raku/FontConfig) pattern attributes. For example `:spacing<mono>` will select monospace fonts.
Any additional options are treated as a [FontConfig](https://pdf-raku.github.io/FontConfig-raku/FontConfig) pattern attributes. For example `:spacing<mono>` will select mono-space fonts.

```raku
use PDF::Font::Loader;
Expand Down
6 changes: 3 additions & 3 deletions lib/PDF/Font/Loader.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Selects the encoding mode: common modes are `win`, `mac` and `identity-h`.
=begin item
C<:$index>
The font index> This option is applicable to TrueType collections (C<*.ttc>) and OpenType collections (C<*.otc>).
The font index. This option is applicable to TrueType collections (C<*.ttc>) and OpenType collections (C<*.otc>).
=end item
=begin item
Expand Down Expand Up @@ -411,11 +411,11 @@ say $file; # /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-BoldOblique.t
my $font = PDF::Font::Loader.load-font: :$file;
=end code
The `:all` option returns a sequence of all fonts, ordered by best to worst matching. This method may be useful, if you wish to apply your own selection critera.
The `:all` option returns a sequence of all fonts, ordered by best to worst matching. This method may be useful, if you wish to apply your own selection criteria.
The `:best($n)` is similar to `:all`, but returns at most the `$n` best matching fonts.
Any additional options are treated as a L<FontConfig> pattern attributes. For example `:spacing<mono>` will select monospace fonts.
Any additional options are treated as a L<FontConfig> pattern attributes. For example `:spacing<mono>` will select mono-space fonts.
=begin code :lang<raku>
use PDF::Font::Loader;
Expand Down

0 comments on commit 51d402a

Please sign in to comment.