Esempio n. 1
0
File: Font.cpp Progetto: psde/gosu
 double factorAt(const FormattedString& fs, unsigned index) const
 {
     if (fs.entityAt(index))
         return 1;
     else
         return 0.5;
 }
Esempio n. 2
0
 double factorAt(const FormattedString& fs, unsigned index)
 {
     if (fs.entityAt(index))
         return 1;
     return charInfo(fs.charAt(index), fs.flagsAt(index)).factor;
 }