Skip to content

Commit 2e0b356

Browse files
committed
documentation corrections
1 parent 459ea01 commit 2e0b356

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Synopsis
5959
say $body-props.font-size; # 12pt
6060
say $body-props; # background-color:powderblue; display:block; font-size:12pt; margin:8px; unicode-bidi:embed;
6161
say $css.style('/html/body/h1[1]');
62-
# color:blue; display:block; font-size:12pt; font-weight:bolder; margin-bottom:0.67em; margin-top:0.67em; unicode-bidi:embed;
62+
# color:blue; display:block; font-size:2em; font-weight:bolder; margin-bottom:0.67em; margin-top:0.67em; unicode-bidi:embed;
6363
say $css.style('/html/body/div');
6464

6565
# color:green; display:block; font-size:10pt; unicode-bidi:embed;
@@ -69,8 +69,8 @@ Synopsis
6969
# -- query first page properties (from @page rules)
7070
say $css.page-properties(:first); # margin:4pt;
7171

72-
# -- find a font using @font-face declarations
73-
say .Str # font-family:'Para'; src:url('/myfonts/para.otf')
72+
# -- find a font source using @font-face declarations
73+
say .Str # /myfonts/para.otf
7474
with $css.font-sources('12pt Para').head;
7575

7676
Description
@@ -153,7 +153,7 @@ By default, this method acts on the root element of the associated $.doc XML doc
153153
method font-sources(CSS::Font() $font) returns Array[CSS::Font::Resources::Source]
154154
```
155155

156-
Returns a list of [CSS::Font::Resources::Source](https://css-raku.github.io/CSS-Font-Resources-raku/CSS/Font/Resources/Source) objects for natching source fonts, based on `@font-face` rules and (as a fallback) the font's name and characterstics.
156+
Returns a list of [CSS::Font::Resources::Source](https://css-raku.github.io/CSS-Font-Resources-raku/CSS/Font/Resources/Source) objects for matching source fonts, based on `@font-face` rules and (as a fallback) the font's name and characterstics.
157157

158158
Utility Scripts
159159
---------------

lib/CSS.rakumod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ method link-pseudo(|c) { $!tag-set.link-pseudo(|c) }
212212
say $body-props.font-size; # 12pt
213213
say $body-props; # background-color:powderblue; display:block; font-size:12pt; margin:8px; unicode-bidi:embed;
214214
say $css.style('/html/body/h1[1]');
215-
# color:blue; display:block; font-size:12pt; font-weight:bolder; margin-bottom:0.67em; margin-top:0.67em; unicode-bidi:embed;
215+
# color:blue; display:block; font-size:2em; font-weight:bolder; margin-bottom:0.67em; margin-top:0.67em; unicode-bidi:embed;
216216
say $css.style('/html/body/div');
217217
218218
# color:green; display:block; font-size:10pt; unicode-bidi:embed;
@@ -222,8 +222,8 @@ method link-pseudo(|c) { $!tag-set.link-pseudo(|c) }
222222
# -- query first page properties (from @page rules)
223223
say $css.page-properties(:first); # margin:4pt;
224224
225-
# -- find a font using @font-face declarations
226-
say .Str # font-family:'Para'; src:url('/myfonts/para.otf')
225+
# -- find a font source using @font-face declarations
226+
say .Str # /myfonts/para.otf
227227
with $css.font-sources('12pt Para').head;
228228
229229
=head2 Description
@@ -299,7 +299,7 @@ By default, this method acts on the root element of the associated $.doc XML doc
299299
=begin code :lang<raku>
300300
method font-sources(CSS::Font() $font) returns Array[CSS::Font::Resources::Source]
301301
=end code
302-
Returns a list of L<CSS::Font::Resources::Source> objects for natching source fonts, based on `@font-face` rules and (as a fallback) the font's name and characterstics.
302+
Returns a list of L<CSS::Font::Resources::Source> objects for matching source fonts, based on `@font-face` rules and (as a fallback) the font's name and characterstics.
303303
304304
=head2 Utility Scripts
305305

0 commit comments

Comments
 (0)