Skip to content

Commit 1069317

Browse files
authored
Update gettingstarted.md
Change "TryFind" to "TryGet". TryFind is no longer available.
1 parent c84baa2 commit 1069317

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/fonts/gettingstarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ collection.Add("path/to/font2.ttf");
3838
collection.Add("path/to/emojiFont.ttf");
3939
collection.AddCollection("path/to/font.ttc");
4040

41-
if(collection.TryFind("Font Name", out FontFamily family))
42-
if(collection.TryFind("Emoji Font Name", out FontFamily emojiFamily))
41+
if(collection.TryGet("Font Name", out FontFamily family))
42+
if(collection.TryGet("Emoji Font Name", out FontFamily emojiFamily))
4343
{
4444
// family will not be null here
4545
Font font = family.CreateFont(12, FontStyle.Italic);
@@ -53,4 +53,4 @@ if(collection.TryFind("Emoji Font Name", out FontFamily emojiFamily))
5353

5454
FontRectangle rect = TextMeasurer.MeasureAdvance("Text to measure", options);
5555
}
56-
```
56+
```

0 commit comments

Comments
 (0)