|
|
@ -95,6 +95,8 @@ namespace Avalonia.Media |
|
|
// Load COLR and CPAL tables for color glyph support
|
|
|
// Load COLR and CPAL tables for color glyph support
|
|
|
ColrTable.TryLoad(this, out _colrTable); |
|
|
ColrTable.TryLoad(this, out _colrTable); |
|
|
CpalTable.TryLoad(this, out _cpalTable); |
|
|
CpalTable.TryLoad(this, out _cpalTable); |
|
|
|
|
|
|
|
|
|
|
|
IsLastResort = ((headTable.Flags & HeadFlags.LastResortFont) != 0) || _cmapTable.Format == CmapFormat.Format13; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var ascent = 0; |
|
|
var ascent = 0; |
|
|
@ -132,11 +134,6 @@ namespace Avalonia.Media |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
HeadTable.TryLoad(this, out var headTable); |
|
|
|
|
|
|
|
|
|
|
|
IsLastResort = (headTable is not null && (headTable.Flags & HeadFlags.LastResortFont) != 0) || |
|
|
|
|
|
_cmapTable.Format == CmapFormat.Format13; |
|
|
|
|
|
|
|
|
|
|
|
var postTable = PostTable.Load(this); |
|
|
var postTable = PostTable.Load(this); |
|
|
|
|
|
|
|
|
var isFixedPitch = postTable.IsFixedPitch; |
|
|
var isFixedPitch = postTable.IsFixedPitch; |
|
|
|