Guide-to-Swift-Strings-Sample-Code
imageworsener
Guide-to-Swift-Strings-Sample-Code | imageworsener | |
---|---|---|
2 | 3 | |
143 | 250 | |
-0.7% | - | |
10.0 | 2.0 | |
almost 5 years ago | 4 months ago | |
Swift | C | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Guide-to-Swift-Strings-Sample-Code
-
Text Rendering Hates You
I agree. It is an excellent article. Text systems are weird.
There's an entire book about strings, in Swift: https://flight.school/books/strings/
- Base Encoding
imageworsener
-
How do a compress a json to fit on neocities
Otherwise, compress the images more. https://entropymine.com/imageworsener/ is a versatile multitool with a learning curve. Many image editors have support for downscaling images and compressing JPEGs. pngquant is a PNG-specific tool, if you like PNGs a lot.
-
Text Rendering Hates You
There can be various causes for those symptoms:
1. Even if the rendering gets the subpixel order right, the subpixels are rarely equidistant on a display. They tend to be closer to each other within a logical pixel.
2. Some subpixel-AA algorithms are naive, and trade color accuracy to luminance accuracy, causing more color fringes.
3. Incorrect gamma handling.
4. If aiming for more luminance accuracy, incorrectly taking into account the relative luminance of the subpixels (what you observed with the brighter green subpixels).
Imageworsener[1] has an option to downscale with subpixel antialiasing, it's gamma correct by default, and it has an option for adjusting the subpixel offsets within a pixel (instead of the naive default of 1/3). It might be a good way to try out correct subpixel-AA, but it only works on images. I guess you can render text on high resolution and downscale that with imageworsener, but you won't get any hinting that way, but maybe that's desired.
Very few software does AA correctly, let alone subpixel-AA.
[1] https://entropymine.com/imageworsener/
- List of Color Quantization Algorithms
What are some alternatives?
ghostedit - Usability focused WYSIWYG editor
msdfgen - Multi-channel signed distance field generator
nuklear - A single-header ANSI C immediate mode cross-platform GUI library
harfbuzz - HarfBuzz text shaping engine
colr-gradients-spec