Display Character Style
Display font name, size, and color values (RGB and Hex) from a parent text layer for branding reference.
Expression Code
// Display Character Style
// Apply to Source Text
// Parent this layer to any text layer
pL = thisLayer.parent;
a = " Font: " + pL.text.sourceText.style.font;
b = "Font Size: " + Math.round(pL.text.sourceText.style.fontSize);
c = pL.text.sourceText.style.fillColor;
rC = Math.round(c[0] * 255);
gC = Math.round(c[1] * 255);
bC = Math.round(c[2] * 255);
c = "R:" + rC + " G:" + gC + " B:" + bC;
// Hex Value
cH = pL.text.sourceText.style.fillColor;
rH = Math.round(cH[0] * 255).toString(16).padStart(2, '0');
gH = Math.round(cH[1] * 255).toString(16).padStart(2, '0');
bH = Math.round(cH[2] * 255).toString(16).padStart(2, '0');
cH = "#" + rH + gH + bH;
a + "\n " + b + "\n " + c + "\n " + cH;1. Create a text layer for displaying the style info
2. Parent it to the text layer you want to inspect
3. Apply this expression to the Source Text property
4. The display layer will show font, size, and color values