From daf3eda1562ce0e4c0b8c47e4353cb4b3e0bd6c4 Mon Sep 17 00:00:00 2001
From: digitaldirk <22691956+digitaldirk@users.noreply.github.com>
Date: Tue, 16 Jan 2024 13:42:07 -0800
Subject: [PATCH] Update index.html
Change "TryFind" to "TryGet". TryFind is no longer available.
---
products/fonts/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/products/fonts/index.html b/products/fonts/index.html
index be8987c..6b011a6 100644
--- a/products/fonts/index.html
+++ b/products/fonts/index.html
@@ -266,8 +266,8 @@
Simple yet powerful
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))
{
Font font = family.CreateFont(12, FontStyle.Italic);
TextOptions options = new(font)
@@ -323,4 +323,4 @@ Simple yet powerful
hljs.initLineNumbersOnLoad({singleLine: true});