Skip to content

fontlab_glyport.model.parameter_numbers · declarations 001

Back to fontlab_glyport.model.parameter_numbers

KEY module-attribute

KEY

normalize

normalize(value: object, *, locale_name: str | None = None) -> bool | int | float

Return this BOOL schema's numeric value without Python truth coercion.

Existing bool/int/float values retain their type/precision. Nil normalizes to false. Strings use NSString.integerValue unless they contain the current decimal separator; decimal parsing rounds through float32. A failed decimal parse uses the upstream nonzero2^63 sentinel. Other object conversions and non-macOS string parsing remain explicitly unqualified.