fix move this enum class to private part and change `Type` to `FontType`.