Fix error 'no implicit conversion of Symbol into Integer'

`glyph(:pencil)` raises error `no implicit conversion of Symbol into Integer`.
This commit fixes the error.