mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 14:50:02 +00:00
fix(product-launch): consolidate media brand and audio contracts (#2408)
* fix(product-launch): preserve hoisted media offsets * fix(product-launch): preserve brand font and accent roles * fix(product-launch): honor TTS provider selection * fix(product-launch): preserve approved video geometry * fix(skills): enforce media geometry and font classification * fix(skills): align secondary brand accents
This commit is contained in:
@@ -163,10 +163,9 @@ let brandFontWeights = []; // weights the brand text font actually ships (tokens
|
||||
let brandColorStats = []; // rich per-color usage stats (areaBg / interactiveBg / textCount …)
|
||||
// Icon/glyph fonts capture surfaces as "fonts" — they are never the brand text face
|
||||
// (webflow-icons, Font Awesome, icomoon …) and must not become display/body or contribute weights.
|
||||
const isIconFont = (name) =>
|
||||
/(?:^|[\s_-])icons?(?:[\s_-]|$)|icomoon|font\s*-?awesome|glyphicons?|material\s*icons|feather\s*icons/i.test(
|
||||
String(name),
|
||||
);
|
||||
const ICON_FONT_PATTERN =
|
||||
/(?:^|[\s_-])icons?(?:[\s_-]|$)|icomoon|font\s*-?awesome|glyphicons?|material\s*icons|feather\s*icons|(?:icon|glyph).*font|font.*(?:icon|glyph)|^vidaxlfont$/i;
|
||||
const isIconFont = (name) => ICON_FONT_PATTERN.test(String(name));
|
||||
if (existsSync(tokensPath)) {
|
||||
try {
|
||||
const t = JSON.parse(readFileSync(tokensPath, "utf8"));
|
||||
|
||||
Reference in New Issue
Block a user