Skip to content

Font loader#747

Closed
feliperohdee wants to merge 28 commits intovercel:mainfrom
feliperohdee:font-loader
Closed

Font loader#747
feliperohdee wants to merge 28 commits intovercel:mainfrom
feliperohdee:font-loader

Conversation

@feliperohdee
Copy link
Copy Markdown

No description provided.

Added support for `mixBlendMode` in the rectangle builder, allowing for more flexible inline styles. The `style` property now constructs a combined string for `filter` and `mix-blend-mode`, improving the management of CSS properties in the output.
Deleted various configuration files including ESLint, Prettier, and GitHub workflows, as well as documentation files such as CONTRIBUTING.md and README.md. Updated package.json to reflect changes in project structure and dependencies.
Refactored .eslintrc.json to include a new rule for mixed spaces and tabs. Updated package.json to add new devDependencies for ESLint and TypeScript, and included a new lint script for code quality checks. Adjusted tsconfig.json and tsup.config.ts for improved build configurations. Enhanced vitest.config.ts for better test coverage reporting.
Updated the `vitest` dependency to version 4.1.2 in `package.json`. Added `__image_snapshots__` directory to `.gitignore` to exclude image snapshots from version control. Removed outdated image snapshot files from the test directory to clean up the repository.
Modified .gitignore to include the `node_modules` and `dist` directories while removing unnecessary entries. Updated package.json for improved formatting and incremented the version to 0.0.3, ensuring better organization of the files and scripts.
Updated package.json to increment the version to 0.0.4. Modified tsup.config.ts to improve the handling of yoga-layout by replacing the base64 WASM loader with a lightweight alternative and ensuring that the `wasmOptions` are correctly passed to the loader function.
Updated the background image processing to support CSS background-position keywords and percentages, improving layout accuracy. Added comprehensive tests for background positioning scenarios. Introduced a README.md file detailing the library's features, usage, and improvements over the original Satori. Incremented version to 0.0.6 in package.json.
Added support for CSS `backdrop-filter` in the layout engine, enabling effects like blur, saturate, brightness, contrast, and grayscale through SVG filters. Introduced a new builder for generating the necessary SVG markup and updated the layout logic to handle backdrop filters correctly. Enhanced README documentation to reflect these changes and incremented the version to 0.0.12 in package.json.
Updated package.json to increment the version to 0.0.13. Enhanced the background image processing logic to handle pixel values and improved the handling of CSS background-size specifications. This includes adjustments to maintain aspect ratios and default values in the background image builder.
Updated package.json to increment the version to 0.0.14. Enhanced the font rendering logic to support faux bold text by calculating stroke width when a regular weight font is used for bold text requests. Updated README.md to document the new faux bold feature.
Updated package.json to increment the version to 0.0.26. Improved the faux bold rendering logic by adjusting stroke width calculations and ensuring proper coexistence with webkit-text-stroke. Enhanced tests to validate the new rendering behavior.
…onality

Updated package.json to increment the version to 0.0.28. Enhanced the backdrop-filter implementation to support additional CSS filter functions including sepia, hue-rotate, and improved handling of percentage values for brightness, contrast, invert, and opacity. Added comprehensive tests to validate the new filter functionalities.
Updated the background image processing logic to include a check for empty image sources before resolving image data. This enhancement prevents potential errors when handling URLs and ensures more robust image processing.
…nterpolation

Updated package.json to increment the version to 0.0.30. Modified the backdrop-filter implementation to change the color interpolation from sRGB to linearRGB, enhancing the accuracy of filter effects.
Refactored multiple files to standardize type definitions and improve function declarations by using `const` for function expressions. This change enhances code readability and maintainability. Updated type exports for better clarity and consistency across the codebase.
Refactored multiple files to enhance type exports by formatting them for better readability. Additionally, standardized function declarations by using concise syntax, improving overall code clarity and maintainability.
…dering

Updated package.json to increment the version to 0.0.32. Enhanced shadow rendering logic to prevent NaN values when blur radius is omitted, ensuring more robust handling of shadow properties in various scenarios. Added corresponding tests to validate these improvements.
…ering

Updated package.json to increment the version to 0.0.35. Enhanced rendering logic by adding support for CSS filters in layout and rect components, while removing unnecessary filter properties from text rendering. This improves the overall rendering capabilities and maintains cleaner code.
…nterpolation

Updated package.json to increment the version to 0.0.37. Modified the backdrop-filter implementation to set the color interpolation to sRGB, enhancing the accuracy of filter effects. Added corresponding tests to validate this change.
…lities

Updated README.md to reflect additional filter functions supported by backdrop-filter, including hue-rotate and invert. Modified backdrop-filter implementation to ensure color-sensitive filters use sRGB for accurate rendering. Improved code readability by formatting object properties consistently.
Updated package.json to include Tailwind CSS as a dependency and added a new script for generating Tailwind CSS. Enhanced README.md to document Tailwind CSS support, including installation and usage instructions. Modified tsup.config.ts to exclude Tailwind CSS from the bundle.
… features

Updated package.json to include lodash and @types/lodash as dependencies. Introduced new font detection and loading functionalities in the src/fonts directory, allowing for dynamic font handling in the rendering process. Added tests to validate the new font loader capabilities and removed outdated benchmark files.
Updated package.json to increment the version to 0.0.41. Enhanced the font loading system by introducing a new configuration object for dynamic font detection and loading, allowing for improved handling of missing glyphs. Updated README.md to document the new font configuration options and their usage. Refactored related code for better clarity and maintainability.
Updated package.json to increment the version to 0.0.42. Refactored font-related types for improved clarity and consistency, including renaming and restructuring type definitions. Enhanced the font loading system by integrating type checks and ensuring better type safety across the codebase. Updated related tests to reflect these changes.
…clarity

Updated package.json to increment the version to 0.0.43. Refactored various type definitions across multiple files to improve clarity and consistency, including the reorganization of type declarations in font.ts, satori.ts, and other modules. This enhances type safety and maintainability throughout the codebase.
… imports

Updated package.json to increment the version to 0.0.44, adding new development dependencies for type definitions related to CSS and HTML escaping. Refactored TypeScript configuration to use 'esnext' module resolution and updated import paths across multiple files for consistency. This enhances type safety and maintainability throughout the codebase.
Refactored various instances of string coercion to use template literals for improved consistency and readability. This change affects multiple files, ensuring that values are consistently converted to strings using the `${value}` syntax. This enhances code clarity and maintains uniformity in handling different data types.
@feliperohdee feliperohdee requested a review from shuding as a code owner April 6, 2026 00:09
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
satori-playground Error Error Open in v0 Apr 6, 2026 0:09am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant