slint/internal/compiler
Olivier Goffart 4e7bbcf2ba
Try to improve rendering (positioning) of signed field distance font. (#6868)
* WIP: swrenderer: use fixed point for the pixmap font coordinate

* swrenderer: signed distance field: move the glyph to the middle

* swrenderer: round the advance instead of truncating it in distance field

* swrenderer: actually align the gplyph on the sub-pixel precision

sub-pixel within the source.

* swrenderer: adapt the threshold for signed distance field

sqrt(2) is the distance to the diagonal, seems like this gives sharper fonts

* Fix bug in the elision, and re-upload the screenshort

the screenshot changed because the afvanced is now rounded intead of
truncated
2024-11-30 23:03:31 +01:00
..
generator Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
llr Avoid inlining @image-url() expressions that can be expensive due to cache misses 2024-11-27 09:10:26 +01:00
lookup Replace compiler dependency on css-color-parser crate 2024-07-29 13:13:53 +02:00
parser Fix parsing of unfinished import statement 2024-10-22 09:35:46 +02:00
parser-test-macro API review of the slint interpreter Compiler api 2024-07-05 17:20:08 +02:00
passes Try to improve rendering (positioning) of signed field distance font. (#6868) 2024-11-30 23:03:31 +01:00
tests compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
widgets Szecket/cupertino colours (#6801) 2024-11-22 08:18:27 +13:00
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
builtin_macros.rs added min/max support for rem (#6842) 2024-11-20 10:19:28 +00:00
builtins.slint windows: added skip_taskbar (#6911) 2024-11-27 09:55:11 +00:00
Cargo.toml Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
diagnostics.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
embedded_resources.rs Signed DistanceField font rendering in swrenderer 2024-10-23 09:12:30 +02:00
expression_tree.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
fileaccess.rs Widget style: simplify -light/-dark handling 2024-08-20 16:55:15 +02:00
generator.rs bundled translation: Better error reporting 2024-11-19 21:34:42 +01:00
langtype.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
layout.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
lexer.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
lib.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
literals.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
llr.rs Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
load_builtins.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
lookup.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
namedreference.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
object_tree.rs Callback arguments names is no longer experimental 2024-11-21 09:53:17 +01:00
parser.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
passes.rs Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
pathutils.rs Use SmolStr for parts of pathutils to remove temporary allocations 2024-10-17 18:04:58 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
typeloader.rs live-preview: Improve handling of cached files 2024-11-27 16:37:09 +01:00
typeregister.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00

The Slint Compiler Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.