From 1069317ba0784f856c7f7e8d84f2b52868af42a6 Mon Sep 17 00:00:00 2001 From: digitaldirk <22691956+digitaldirk@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:25:59 -0800 Subject: [PATCH] Update gettingstarted.md Change "TryFind" to "TryGet". TryFind is no longer available. --- articles/fonts/gettingstarted.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/articles/fonts/gettingstarted.md b/articles/fonts/gettingstarted.md index a72c51f53..92ca9ea7f 100644 --- a/articles/fonts/gettingstarted.md +++ b/articles/fonts/gettingstarted.md @@ -38,8 +38,8 @@ collection.Add("path/to/font2.ttf"); collection.Add("path/to/emojiFont.ttf"); collection.AddCollection("path/to/font.ttc"); -if(collection.TryFind("Font Name", out FontFamily family)) -if(collection.TryFind("Emoji Font Name", out FontFamily emojiFamily)) +if(collection.TryGet("Font Name", out FontFamily family)) +if(collection.TryGet("Emoji Font Name", out FontFamily emojiFamily)) { // family will not be null here Font font = family.CreateFont(12, FontStyle.Italic); @@ -53,4 +53,4 @@ if(collection.TryFind("Emoji Font Name", out FontFamily emojiFamily)) FontRectangle rect = TextMeasurer.MeasureAdvance("Text to measure", options); } -``` \ No newline at end of file +```