Lines Matching refs:hints

5 /*    FreeType PostScript hints recorder (body).                           */
48 /* destroy hints table */
53 FT_FREE( table->hints );
74 if ( !FT_RENEW_ARRAY( table->hints, old_max, new_max ) )
101 hint = table->hints + count - 1;
541 ps_hint_table_done( &dimension->hints, memory );
549 dimension->hints.num_hints = 0;
669 /* now, lookup stem in the current hints table */
673 FT_UInt max = dim->hints.num_hints;
674 PS_Hint hint = dim->hints.hints;
686 error = ps_hint_table_alloc( &dim->hints, memory, &hint );
744 /* now, set the bits for our hints in the counter mask */
785 /* destroy hints */
787 ps_hints_done( PS_Hints hints )
789 FT_Memory memory = hints->memory;
792 ps_dimension_done( &hints->dimension[0], memory );
793 ps_dimension_done( &hints->dimension[1], memory );
795 hints->error = FT_Err_Ok;
796 hints->memory = 0;
801 ps_hints_init( PS_Hints hints,
804 FT_MEM_ZERO( hints, sizeof ( *hints ) );
805 hints->memory = memory;
809 /* initialize a hints for a new session */
811 ps_hints_open( PS_Hints hints,
818 hints->error = FT_Err_Ok;
819 hints->hint_type = hint_type;
821 ps_dimension_init( &hints->dimension[0] );
822 ps_dimension_init( &hints->dimension[1] );
826 hints->error = FT_THROW( Invalid_Argument );
827 hints->hint_type = hint_type;
835 /* add one or more stems to the current hints table */
837 ps_hints_stem( PS_Hints hints,
842 if ( !hints->error )
852 /* record the stems in the current hints/masks table */
853 switch ( hints->hint_type )
858 PS_Dimension dim = &hints->dimension[dimension];
864 FT_Memory memory = hints->memory;
873 " (%d,%d) to hints table\n", stems[0], stems[1] ));
875 hints->error = error;
884 hints->hint_type ));
891 /* add one Type1 counter stem to the current hints table */
893 ps_hints_t1stem3( PS_Hints hints,
900 if ( !hints->error )
903 FT_Memory memory = hints->memory;
916 dim = &hints->dimension[dimension];
919 if ( hints->hint_type == PS_HINT_TYPE_1 )
921 /* add the three stems to our hints/masks table */
932 /* now, add the hints to the counters table */
950 hints->error = error;
954 /* reset hints (only with Type 1 hints) */
956 ps_hints_t1reset( PS_Hints hints,
962 if ( !hints->error )
964 FT_Memory memory = hints->memory;
967 if ( hints->hint_type == PS_HINT_TYPE_1 )
969 error = ps_dimension_reset_mask( &hints->dimension[0],
974 error = ps_dimension_reset_mask( &hints->dimension[1],
989 hints->error = error;
995 ps_hints_t2mask( PS_Hints hints,
1003 if ( !hints->error )
1005 PS_Dimension dim = hints->dimension;
1006 FT_Memory memory = hints->memory;
1007 FT_UInt count1 = dim[0].hints.num_hints;
1008 FT_UInt count2 = dim[1].hints.num_hints;
1036 hints->error = error;
1041 ps_hints_t2counter( PS_Hints hints,
1048 if ( !hints->error )
1050 PS_Dimension dim = hints->dimension;
1051 FT_Memory memory = hints->memory;
1052 FT_UInt count1 = dim[0].hints.num_hints;
1053 FT_UInt count2 = dim[1].hints.num_hints;
1081 hints->error = error;
1087 ps_hints_close( PS_Hints hints,
1093 error = hints->error;
1096 FT_Memory memory = hints->memory;
1097 PS_Dimension dim = hints->dimension;
1109 ps_debug_hints = hints;
1124 t1_hints_open( T1_Hints hints )
1126 ps_hints_open( (PS_Hints)hints, PS_HINT_TYPE_1 );
1130 t1_hints_stem( T1_Hints hints,
1140 ps_hints_stem( (PS_Hints)hints, dimension, 1, stems );
1167 t2_hints_open( T2_Hints hints )
1169 ps_hints_open( (PS_Hints)hints, PS_HINT_TYPE_2 );
1174 t2_hints_stems( T2_Hints hints,
1203 ps_hints_stem( (PS_Hints)hints, dimension, count, stems );