CpalModifier class

Modifies the CPAL color table in a TTF/OTF font.

QFC4 fonts use CPAL (Color Palette) tables for tajweed coloring. By manipulating the palette, we create dark-mode and no-tajweed variants without needing separate font files.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

modifyAllColors(Uint8List fontBytes, Color color) Uint8List
Replaces ALL CPAL colors with a single unified color.
modifyBaseColor(Uint8List fontBytes, Color newBaseColor) Uint8List
Replaces the black base color (text layer) with newBaseColor, leaving tajweed colors intact.