Lines Matching refs:aInfo

879             TTGlobalFontInfo aInfo;  in identifyTrueTypeFont()  local
880 GetTTGlobalFontInfo( pTTF, &aInfo ); in identifyTrueTypeFont()
882 if( aInfo.ufamily ) in identifyTrueTypeFont()
883 o_rResult.SetName( aInfo.ufamily ); in identifyTrueTypeFont()
884 else if( aInfo.family ) in identifyTrueTypeFont()
885 … o_rResult.SetName( rtl::OStringToOUString( aInfo.family, RTL_TEXTENCODING_ASCII_US ) ); in identifyTrueTypeFont()
887 if( aInfo.weight ) in identifyTrueTypeFont()
889 if( aInfo.weight < FW_EXTRALIGHT ) in identifyTrueTypeFont()
891 else if( aInfo.weight < FW_LIGHT ) in identifyTrueTypeFont()
893 else if( aInfo.weight < FW_NORMAL ) in identifyTrueTypeFont()
895 else if( aInfo.weight < FW_MEDIUM ) in identifyTrueTypeFont()
897 else if( aInfo.weight < FW_SEMIBOLD ) in identifyTrueTypeFont()
899 else if( aInfo.weight < FW_BOLD ) in identifyTrueTypeFont()
901 else if( aInfo.weight < FW_EXTRABOLD ) in identifyTrueTypeFont()
903 else if( aInfo.weight < FW_BLACK ) in identifyTrueTypeFont()
909 o_rResult.SetWeight( (aInfo.macStyle & 1) ? WEIGHT_BOLD : WEIGHT_NORMAL ); in identifyTrueTypeFont()
911 if( aInfo.width ) in identifyTrueTypeFont()
913 if( aInfo.width == FWIDTH_ULTRA_CONDENSED ) in identifyTrueTypeFont()
915 else if( aInfo.width == FWIDTH_EXTRA_CONDENSED ) in identifyTrueTypeFont()
917 else if( aInfo.width == FWIDTH_CONDENSED ) in identifyTrueTypeFont()
919 else if( aInfo.width == FWIDTH_SEMI_CONDENSED ) in identifyTrueTypeFont()
921 else if( aInfo.width == FWIDTH_NORMAL ) in identifyTrueTypeFont()
923 else if( aInfo.width == FWIDTH_SEMI_EXPANDED ) in identifyTrueTypeFont()
925 else if( aInfo.width == FWIDTH_EXPANDED ) in identifyTrueTypeFont()
927 else if( aInfo.width == FWIDTH_EXTRA_EXPANDED ) in identifyTrueTypeFont()
929 else if( aInfo.width >= FWIDTH_ULTRA_EXPANDED ) in identifyTrueTypeFont()
933 o_rResult.SetItalic( (aInfo.italicAngle != 0) ? ITALIC_NORMAL : ITALIC_NONE ); in identifyTrueTypeFont()
936 o_rResult.SetPitch( (aInfo.pitch == 0) ? PITCH_VARIABLE : PITCH_FIXED ); in identifyTrueTypeFont()
939 if( aInfo.usubfamily ) in identifyTrueTypeFont()
940 o_rResult.SetStyleName( rtl::OUString( aInfo.usubfamily ) ); in identifyTrueTypeFont()
941 else if( aInfo.subfamily ) in identifyTrueTypeFont()
942 o_rResult.SetStyleName( rtl::OUString::createFromAscii( aInfo.subfamily ) ); in identifyTrueTypeFont()