예제 #1
0
파일: Font.cpp 프로젝트: psde/gosu
 double factorAt(const FormattedString& fs, unsigned index) const
 {
     if (fs.entityAt(index))
         return 1;
     else
         return 0.5;
 }
예제 #2
0
파일: Font.cpp 프로젝트: ChicoTeam/gosu
 double factorAt(const FormattedString& fs, unsigned index)
 {
     if (fs.entityAt(index))
         return 1;
     return charInfo(fs.charAt(index), fs.flagsAt(index)).factor;
 }