| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | 
							- using System;
 
- using Avalonia.Media;
 
- namespace Avalonia.UnitTests
 
- {
 
-     public class MockGlyphTypeface : IGlyphTypeface
 
-     {
 
-         public FontMetrics Metrics => new FontMetrics
 
-         {
 
-             DesignEmHeight = 10,
 
-             Ascent = 2,
 
-             Descent = 10,
 
-             IsFixedPitch = true
 
-         };
 
-         public int GlyphCount => 1337;
 
-         public FontSimulations FontSimulations => throw new NotImplementedException();
 
-         public ushort GetGlyph(uint codepoint)
 
-         {
 
-             return (ushort)codepoint;
 
-         }
 
-         public ushort[] GetGlyphs(ReadOnlySpan<uint> codepoints)
 
-         {
 
-             return new ushort[codepoints.Length];
 
-         }
 
-         public int GetGlyphAdvance(ushort glyph)
 
-         {
 
-             return 8;
 
-         }
 
-         public bool TryGetGlyph(uint codepoint, out ushort glyph)
 
-         {
 
-             glyph = 8;
 
-             return true;
 
-         }
 
-         public int[] GetGlyphAdvances(ReadOnlySpan<ushort> glyphs)
 
-         {
 
-             var advances = new int[glyphs.Length];
 
-             for (var i = 0; i < advances.Length; i++)
 
-             {
 
-                 advances[i] = 8;
 
-             }
 
-             return advances;
 
-         }
 
-         public void Dispose() { }
 
-         public bool TryGetTable(uint tag, out byte[] table)
 
-         {
 
-             table = null;
 
-             return false;
 
-         }
 
-         public bool TryGetGlyphMetrics(ushort glyph, out GlyphMetrics metrics)
 
-         {
 
-             metrics = new GlyphMetrics
 
-             {
 
-                 Width = 10,
 
-                 Height = 10
 
-             };
 
-             return true;
 
-         }
 
-     }
 
- }
 
 
  |