< prev index next >

src/java.desktop/share/native/libfreetype/src/cff/cffobjs.c

Print this page




 945               break;
 946             }
 947           }
 948         }
 949         else
 950         {
 951           char  *cid_font_name =
 952                    cff_index_get_sid_string( cff,
 953                                              dict->cid_font_name );
 954 
 955 
 956           /* do we have a `/FontName' for a CID-keyed font? */
 957           if ( cid_font_name )
 958             cffface->family_name = cff_strcpy( memory, cid_font_name );
 959         }
 960 
 961         if ( style_name )
 962           cffface->style_name = style_name;
 963         else
 964           /* assume "Regular" style if we don't know better */
 965           cffface->style_name = cff_strcpy( memory, (char *)"Regular" );
 966 
 967         /********************************************************************
 968          *
 969          * Compute face flags.
 970          */
 971         flags = FT_FACE_FLAG_SCALABLE   | /* scalable outlines */
 972                 FT_FACE_FLAG_HORIZONTAL | /* horizontal data   */
 973                 FT_FACE_FLAG_HINTER;      /* has native hinter */
 974 
 975         if ( sfnt_format )
 976           flags |= FT_FACE_FLAG_SFNT;
 977 
 978         /* fixed width font? */
 979         if ( dict->is_fixed_pitch )
 980           flags |= FT_FACE_FLAG_FIXED_WIDTH;
 981 
 982   /* XXX: WE DO NOT SUPPORT KERNING METRICS IN THE GPOS TABLE FOR NOW */
 983 #if 0
 984         /* kerning available? */
 985         if ( face->kern_pairs )




 945               break;
 946             }
 947           }
 948         }
 949         else
 950         {
 951           char  *cid_font_name =
 952                    cff_index_get_sid_string( cff,
 953                                              dict->cid_font_name );
 954 
 955 
 956           /* do we have a `/FontName' for a CID-keyed font? */
 957           if ( cid_font_name )
 958             cffface->family_name = cff_strcpy( memory, cid_font_name );
 959         }
 960 
 961         if ( style_name )
 962           cffface->style_name = style_name;
 963         else
 964           /* assume "Regular" style if we don't know better */
 965           cffface->style_name = cff_strcpy( memory, "Regular" );
 966 
 967         /********************************************************************
 968          *
 969          * Compute face flags.
 970          */
 971         flags = FT_FACE_FLAG_SCALABLE   | /* scalable outlines */
 972                 FT_FACE_FLAG_HORIZONTAL | /* horizontal data   */
 973                 FT_FACE_FLAG_HINTER;      /* has native hinter */
 974 
 975         if ( sfnt_format )
 976           flags |= FT_FACE_FLAG_SFNT;
 977 
 978         /* fixed width font? */
 979         if ( dict->is_fixed_pitch )
 980           flags |= FT_FACE_FLAG_FIXED_WIDTH;
 981 
 982   /* XXX: WE DO NOT SUPPORT KERNING METRICS IN THE GPOS TABLE FOR NOW */
 983 #if 0
 984         /* kerning available? */
 985         if ( face->kern_pairs )


< prev index next >