Home | History | Annotate | Download | only in sfnt

Lines Matching refs:woff

405   /* SFNT of a WOFF font.                                               */
414 WOFF_HeaderRec woff;
455 if ( FT_STREAM_READ_FIELDS( woff_header_fields, &woff ) )
459 if ( woff.flavor == TTAG_wOFF || woff.flavor == TTAG_ttcf )
463 if ( woff.length != stream->size ||
464 woff.num_tables == 0 ||
465 44 + woff.num_tables * 20UL >= woff.length ||
466 12 + woff.num_tables * 16UL >= woff.totalSfntSize ||
467 ( woff.totalSfntSize & 3 ) != 0 ||
468 ( woff.metaOffset == 0 && ( woff.metaLength != 0 ||
469 woff.metaOrigLength != 0 ) ) ||
470 ( woff.metaLength != 0 && woff.metaOrigLength == 0 ) ||
471 ( woff.privOffset == 0 && woff.privLength != 0 ) )
474 if ( FT_ALLOC( sfnt, woff.totalSfntSize ) ||
485 x = woff.num_tables;
495 rangeShift = woff.num_tables * 16 - searchRange;
497 WRITE_ULONG ( sfnt_header, woff.flavor );
498 WRITE_USHORT( sfnt_header, woff.num_tables );
508 if ( FT_NEW_ARRAY( tables, woff.num_tables ) ||
509 FT_NEW_ARRAY( indices, woff.num_tables ) )
516 if ( FT_FRAME_ENTER( 20L * woff.num_tables ) )
519 for ( nn = 0; nn < woff.num_tables; nn++ )
555 woff.num_tables,
561 woff_offset = 44 + woff.num_tables * 20L;
562 sfnt_offset = 12 + woff.num_tables * 16L;
564 for ( nn = 0; nn < woff.num_tables; nn++ )
570 table->Offset + table->CompLength > woff.length ||
571 sfnt_offset + table->OrigLength > woff.totalSfntSize ||
594 if ( woff.metaOffset )
596 if ( woff.metaOffset != woff_offset ||
597 woff.metaOffset + woff.metaLength > woff.length )
604 woff_offset += woff.metaLength;
607 if ( woff.privOffset )
612 if ( woff.privOffset != woff_offset ||
613 woff.privOffset + woff.privLength > woff.length )
620 woff_offset += woff.privLength;
623 if ( sfnt_offset != woff.totalSfntSize ||
624 woff_offset != woff.length )
632 for ( nn = 0; nn < woff.num_tables; nn++ )
684 /* We don't check whether the padding bytes in the WOFF file are */
695 FT_Stream_OpenMemory( sfnt_stream, sfnt, woff.totalSfntSize );
760 FT_TRACE2(( "sfnt_open_font: file is a WOFF; synthesizing SFNT\n" ));