I think the SmallCap value defined in def (line 651) as 1 << 18 should be 1 << 17, so that the "bit position" defined in the SPEC, part 9.8.2 (Font Descriptor Flag) in Table 123 (Font flag), is actually 18.
As an other evidence, consider that ForceBold has the same value 1 << 18, which is certainly a mistake.
I think the SmallCap value defined in def (line 651) as 1 << 18 should be 1 << 17, so that the "bit position" defined in the SPEC, part 9.8.2 (Font Descriptor Flag) in Table 123 (Font flag), is actually 18. As an other evidence, consider that ForceBold has the same value 1 << 18, which is certainly a mistake.