You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,7 +99,7 @@ SkiaSharp is a managed C# binding over the native Skia engine. On Linux (includi
79
99
|`SkiaSharp.NativeAssets.Linux`| Standard Linux environments with system libs (fontconfig, freetype) |
80
100
|`SkiaSharp.NativeAssets.Linux.NoDependencies`| Minimal/Docker containers without system libs |
81
101
82
-
The native assets package is added only to **executable projects** (CLI, tests, examples) -- not to library projects like `FlexRender.Skia`. Library consumers bring their own native assets for their target platform.
102
+
The native assets package is added only to **executable projects** (CLI, tests, examples) -- not to library projects like `FlexRender.Skia.Render`. Library consumers bring their own native assets for their target platform.
83
103
84
104
Similarly, `FlexRender.HarfBuzz` requires `HarfBuzzSharp.NativeAssets.Linux` on Linux. Add it to executable projects that use HarfBuzz text shaping.
85
105
@@ -96,6 +116,7 @@ YAML Template
96
116
-> TemplateProcessor (resolve {{variable}} expressions in element properties)
@@ -290,7 +312,9 @@ dotnet run --project src/FlexRender.Cli -- watch template.yaml -d data.json -o p
290
312
dotnet run --project src/FlexRender.Cli -- debug-layout template.yaml -d data.json
291
313
```
292
314
293
-
Global options: `-v`/`--verbose`, `--fonts <dir>`, `--scale <float>`
315
+
Global options: `-v`/`--verbose`, `--fonts <dir>`, `--scale <float>`, `-b`/`--backend <skia|imagesharp>`
316
+
317
+
The `--backend` option selects the rendering backend: `skia` (default, full features) or `imagesharp` (pure .NET, no native deps, no QR/barcode/SVG element support).
294
318
295
319
**Working directory matters:** CLI resolves all relative paths (template, data, fonts, image `src`) from the current working directory. When running examples, `cd` into `examples/` first, otherwise assets like `assets/fonts/Inter-Regular.ttf` won't be found.
296
320
@@ -365,10 +389,7 @@ var sb = new StringBuilder(estimatedCapacity);
365
389
366
390
1. Add property to `TemplateElement` in `Parsing/Ast/TemplateElement.cs`
367
391
2. Parse the property in `ElementParsers.cs`
368
-
3.**CRITICAL**: Copy the property in ALL THREE `CopyBaseProperties()` methods:
0 commit comments