File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
src/UglyToad.PdfPig.Fonts/TrueType/Parser Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 1
1
namespace UglyToad . PdfPig . Fonts . TrueType . Parser
2
2
{
3
3
using System ;
4
- using System . Diagnostics ;
5
4
using Tables ;
6
5
7
6
internal static class TableParser
@@ -14,19 +13,7 @@ internal static class TableParser
14
13
15
14
public static T Parse < T > ( TrueTypeHeaderTable table , TrueTypeDataBytes data , TableRegister . Builder register ) where T : ITrueTypeTable
16
15
{
17
- // checksum https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6.html
18
- uint sum = 0 ;
19
- var nLongs = ( table . Length + 3 ) / 4 ;
20
16
data . Seek ( table . Offset ) ;
21
- while ( nLongs -- > 0 )
22
- {
23
- sum += ( uint ) data . ReadSignedInt ( ) ;
24
- }
25
-
26
- if ( sum != table . CheckSum )
27
- {
28
- Debug . WriteLine ( "Table with invalid checksum found in TrueType font file." ) ;
29
- }
30
17
31
18
if ( typeof ( T ) == typeof ( CMapTable ) )
32
19
{
You can’t perform that action at this time.
0 commit comments