Can I use ✔️ in [objectives]?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Can I use ✔️ in [objectives]?
Hi,
I want to tag done objectives with this special character:
But before release of my campaign, I'm wonder if the other players will see it?
I'm coding on MacOS.
Example:
Thank you
I want to tag done objectives with this special character:
But before release of my campaign, I'm wonder if the other players will see it?
I'm coding on MacOS.
Example:
Code: Select all
[objectives]
[objective]
description= _ "<span color='#BCB088'>Escape wolves</span>✓"
condition=win
[/objective]
[/objectives]
Re: Can I use ✔️ in [objectives]?
It should work, but it depends on the sign itself. I used a tick sign in one of my campaigns too, and it worked fine on my Linux system, but Windows users reported that they see the blank missing-character-box instead.
I don't know which symbol is recognized by all systems, but the bold one in the first line of this text certainly isn't. I guess the safest bet is to just use something like
I don't know which symbol is recognized by all systems, but the bold one in the first line of this text certainly isn't. I guess the safest bet is to just use something like
(done)
, with a unique color, instead of a dedicated check mark.Main UMC campaigns: The Ravagers - now for 1.16, with new bugs!
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Re: Can I use ✔️ in [objectives]?
RIght, finally I decided to use: (done)
Thx
Thx
- Elvish_Hunter
- Posts: 1575
- Joined: September 4th, 2009, 2:39 pm
- Location: Lintanir Forest...
Re: Can I use ✔️ in [objectives]?
I did some investigations, and this actually sounds like a bug.
It looks like the expected behavior should be to use the glyphs available in the Lato Regular font first, and if the required glyph isn't available fall back on the DejaVu Sans font. For some reason, this works correctly on Linux, but not on Windows.
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
Re: Can I use ✔️ in [objectives]?
There are some bug reports that may be relevant: #5007 #1549Elvish_Hunter wrote: ↑August 3rd, 2020, 7:37 pm I did some investigations, and this actually sounds like a bug.
It looks like the expected behavior should be to use the glyphs available in the Lato Regular font first, and if the required glyph isn't available fall back on the DejaVu Sans font. For some reason, this works correctly on Linux, but not on Windows.
I tried testing some check mark characters (⍻ ☑ ✓ ✔ 🗸 🗹 ) on Windows 10 in Wesnoth 1.14.13, Wesnoth 1.15.3, and the use_fontconfig branch:
So, if you're writing an add-on which is targeting Wesnoth 1.15/1.16, you might be able to use check mark characters.
Re: Can I use ✔️ in [objectives]?
It would be interesting to see what the technical difference between vanilla 1.14.13 and 1.15.3 is. Different Pango/Cairo versions maybe?
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.