# Ton of improvements: Tiled maps, fonts on web, shader effects on lights, GTK 3 scaling, OPM, Swappy Jigsaw, FPC/Lazarus version updates

**URL:** <https://forum.castle-engine.io/t/ton-of-improvements-tiled-maps-fonts-on-web-shader-effects-on-lights-gtk-3-scaling-opm-swappy-jigsaw-fpc-lazarus-version-updates/2359>\
**Category:** News\
**Created:** [December 1, 2026, 7:38pm UTC](https://forum.castle-engine.io/t/ton-of-improvements-tiled-maps-fonts-on-web-shader-effects-on-lights-gtk-3-scaling-opm-swappy-jigsaw-fpc-lazarus-version-updates/2359 "2026-12-01T19:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [December 1, 2026, 7:38pm UTC](https://forum.castle-engine.io/t/ton-of-improvements-tiled-maps-fonts-on-web-shader-effects-on-lights-gtk-3-scaling-opm-swappy-jigsaw-fpc-lazarus-version-updates/2359/1 "2026-12-01T19:38:56Z")

</div>

| [![Collage: Tiled, light effects, fonts](https://forum.castle-engine.io/uploads/default/original/2X/9/990096beda52557071a902a07e8993cae38b1d7d.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/social_collage_E_tiled_hero_small_fonts.png "Collage: Tiled, light effects, fonts") |
| [![Map from Kenney https://kenney.nl/assets/tiny-battle](https://forum.castle-engine.io/uploads/default/original/2X/a/ac693569190fbf2ecb976c9cd574689b2b13f2a5.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/tiled_tiny_battle.png "Map from Kenney https://kenney.nl/assets/tiny-battle") |
| [![Map from Kenney https://kenney.nl/assets/tiny-battle (red and blue rects overlay by our code)](https://forum.castle-engine.io/uploads/default/original/2X/d/d85a6c21e2c4bf4851901d46b829856814c4abf0.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/tiled_tiny_battle_movement_range.png "Map from Kenney https://kenney.nl/assets/tiny-battle (red and blue rects overlay by our code)") |
| [![Light effect (stained glass). Light effect (stained glass). Assets from Kenney Mini Dungeon (CC0)](https://forum.castle-engine.io/uploads/default/original/2X/1/1d8201ba6af692bbbb6d8cc9c3d0bcfc56ea8674.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/lights_stained_glass.png "Light effect (stained glass). Light effect (stained glass). Assets from Kenney Mini Dungeon (CC0)") |
| [![Light effect (stained glass). Light effect (stained glass). Assets from Kenney Mini Dungeon (CC0)](https://forum.castle-engine.io/uploads/default/original/2X/d/d2bda2094142dcb115f76b4450c40ea73e825d8c.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/lights_stained_glass_2.png "Light effect (stained glass). Light effect (stained glass). Assets from Kenney Mini Dungeon (CC0)") |
| [![Multiple different fonts in CGE example (editor)](https://forum.castle-engine.io/uploads/default/original/2X/9/966b17d85a435ce7585f034aa8e0c583b117508e.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/fonts_pascal_freetype_showcase.png "Multiple different fonts in CGE example (editor)") |
| [![Multiple different fonts in CGE example](https://forum.castle-engine.io/uploads/default/original/2X/6/64649d367b488f3680b1b72dba9421c40e0d6ecd.png)](https://castle-engine.io/wp/wp-content/uploads/2026/12/fonts_editor.png "Multiple different fonts in CGE example") |

We have a big backlog of engine improvements to announce. They were done in the last ~3 months. Each week, each of these things seemed _“too small to do a dedicated news announcement”_, and that’s how we end up here 🙂 Enjoy, and see if you can find here something that makes your game development more fun.

As usual, everything listed below is already available [in our downloads](https://castle-engine.io/download). **Your [support on Patreon](https://www.patreon.com/c/castleengine) is much appreciated and allows us to keep this development going.**

Let’s go!

1. [Tiled maps](https://castle-engine.io/tiled_maps) expose a new property `TCastleTiledMap.LayersZDistance`. You can read it (and reliably position your objects in front / behind the layers you want) and write it.

The way we organize Tiled layers always involved positioning each layer at a different Z value, but in the past we tried to keep this property internal, and asked you to not rely on a particular value. This was a mistake in hindsight — making this value public, and settable, should make using Tiled maps more obvious.

2. [Tiled maps](https://castle-engine.io/tiled_maps) example in [examples/tiled/map\_viewer/](https://github.com/castle-engine/castle-engine/tree/master/examples/tiled/map_viewer) contains a sample code to position scenes at map tiles.

3. Thanks to the FPC developers, the [web target](https://castle-engine.io/web) got a big improvement: _Exceptions are supported_!

4. Fonts on [web](https://castle-engine.io/web) are fixed: We now feature a Pascal-only implementation of FreeType API, used as a fallback when dynamic FreeType is not available, on all the platforms.

5. Our internal unit on top of FreeType, [CastleInternalFreeType](https://github.com/castle-engine/castle-engine/blob/master/src/fonts/castleinternalfreetype.pas), has been refactored and simplified _a lot_. This contained a lot of unnecessary baggage (we started this looking at FPC unit that does font management), which was removed, because all we need there is to load a font and render a single glyph using its Unicode number.

6. [_Castle Game Engine_ in Lazarus _OPM (Online Package Manager)_](https://packages.lazarus-ide.org/) has been updated to the latest version (from our snapshots at the beginning of October).

7. Easily add shader effects on lights, using `TCastleAbstractLight.SetEffects` method. There’s a [new example](https://github.com/castle-engine/castle-engine/tree/master/examples/shaders/shader_effects_on_lights) and [bugfix](https://github.com/castle-engine/castle-engine/pull/743) around it too. See [docs for shader effects](https://castle-engine.io/shaders).

8. Various improvements have been done to `ExtractUriName` and friends, to make them properly strip the anchor (`#xxx`) or query (`?xxx`) at the end of the URL. We use proper URL parsing, `ParseURI`, and in all engine places URLs with anchor (`#xxx`) or query (`?xxx`) should be OK now.

9. More about URLs: We fixed reading data from URLs that cannot “detect existence” like `http(s)` URLs.

10. Editor toolbar icons (to interact, select, translate, rotate, zoom) now look good in dark themes.

11. SVG icons of our engine and model viewer now look correct with Qt SVG rendering (used e.g. by [Dux Modular Shell (formerly Dank Material Shell)](https://duxlabs.dev/) and [PikaOS + Niri](https://pika-os.com/) setups on Linux).

12. I have forked and restored [Swappy Jigsaw](https://github.com/castle-engine/swappy-jigsaw/), game done by the late Eugene Loza. It now works with the latest engine, following our [views](https://castle-engine.io/views) concepts, and has [updated downloads](https://github.com/castle-engine/swappy-jigsaw/releases/tag/snapshot).

13. We have updated our [bundled FPC version](https://github.com/castle-engine/castle-fpc), which is also FPC used to make releases. On _Raspberry Pi_ and _macOS_, it is now `3.2.5`. (On other platforms, it remains at last stable 3.2.2 now.)

14. We have updated our [Lazarus used to make releases](https://github.com/castle-engine/castle-lazarus/) to 4.8.

15. Speaking about GTK 3, our `TCastleWindow` backend using GTK 3 on Linux got a significant fix/improvement to support GDK/GTK scaling. This for now accounts for GTK 3 integer scaling, but the underlying code is also ready for GTK 4 fractional scaling. See [this comment for details](https://github.com/castle-engine/castle-engine/issues/750#issuecomment-7178820285).

We hope you enjoy these updates and we appreciate your [support on Patreon](https://www.patreon.com/c/castleengine). Have fun making games!
