SkiaSharp.TextBlocks
SkiaSharp.TextBlocks copied to clipboard
GetGlyphSpan(Font font, string text) Is it okay not to check for null here?
file \source\SkiaSharp.TextBlocks\TextShaper.cs
Is it okay not to check for null here?
public GlyphSpan GetGlyphSpan(Font font, string text)
{
GlyphSpan shape = null;
**if (GlyphSpanCache != null)**
lock (CacheLock)
{
GlyphSpanCache.TryGetValue((font, text), out shape);
}
yeah, that looks like it would make more sense
Thank you for your reply