@remotion/layout-utils 4.0.193 → 4.0.195

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,7 @@ const takeMeasurement = ({ text, fontFamily, fontSize, fontWeight, letterSpacing
51
51
  * @returns {Dimensions} The dimensions object containing the measured width and height of the text.
52
52
  */
53
53
  const measureText = ({ text, fontFamily, fontSize, fontWeight, letterSpacing, fontVariantNumeric, validateFontIsLoaded, additionalStyles, }) => {
54
- const key = `${text}-${fontFamily}-${fontWeight}-${fontSize}-${letterSpacing}`;
54
+ const key = `${text}-${fontFamily}-${fontWeight}-${fontSize}-${letterSpacing}-${JSON.stringify(additionalStyles)}`;
55
55
  if (wordCache.has(key)) {
56
56
  return wordCache.get(key);
57
57
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/layout-utils"
4
4
  },
5
5
  "name": "@remotion/layout-utils",
6
- "version": "4.0.193",
6
+ "version": "4.0.195",
7
7
  "description": "Utilities for working with layouts",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",