FontStyle* FontFamily::GetStyleByID(uint16 id) const { int32 count = fStyles.CountItems(); for (int32 i = 0; i < count; i++) { FontStyle* style = fStyles.ItemAt(i); if (style->ID() == id) return style; } return NULL; }