Enlarged Story Line Text?
Moderator: Forum Moderators
Re: Enlarged Story Line Text?
I'm curious as to how difficult it would be to integrate CSS into Wesnoth- a few Linux window managers use it already and it's really a simple yet powerful language. There is also the display problem of units that have multiple abilities, they don't always show. Maybe a good GSOC 2013 project?
Re: Enlarged Story Line Text?
@mattsc: I was working on a large double-resolution Wesnoth theme (I have a 2560x1600 resolution on a 13-inch display) but didn’t get to some of the non-in-game widgets. I have it somewhere and I may get back to it one day.
@yogicbrewer: Sounds like a Feature Request may be in order. See this for how to submit a feature request.
@yogicbrewer: Sounds like a Feature Request may be in order. See this for how to submit a feature request.
Wesnoth Bestiary ( PREVIEW IT HERE )
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Re: Enlarged Story Line Text?
In case anybody actually uses this, I just put v0.0.1 on the 1.10 and 1.11 add-ons servers that fixes a couple minor bugs:
- HP and XP for the unit are now displayed in full even if they are > 100 (previously cut off by size of the respective panels of the theme)
- Messages now don't produce an error message if
speaker=unit
is used in an event that does not have a unit defined (and equivalently for second_unit)
Cool!ancestral wrote:@mattsc: I was working on a large double-resolution Wesnoth theme (I have a 2560x1600 resolution on a 13-inch display) but didn’t get to some of the non-in-game widgets. I have it somewhere and I may get back to it one day.
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
Re: Enlarged Story Line Text?
Picking up this thread, I created the attached theme (just the _main.cfg and @mattsc's message_font_size.lua files are attached, put them in a directory called proto-hi-res in your add-ons directory) which attempts to "re-calculate" all of the display elements based on just a pixel pitch (mine happens to be 90 microns) and a few other basic dimensions. It kinda works -- definitely much more playable. Some of the graphic elements sadly do not expand with current code to fill their available space, but the mini-map is finally actually useful again
I put "re-calculate" in quotes because the preprocessor does not have math capabilities, so I will be filing a feature request for WML variable/formula substitution in theme WML.
WARNING: if you use this theme with unmodified Wesnoth 1.15.3 and you make the screen large enough so that the main map panel would be larger than 768 pixels high, the main map disappears, making the theme unusable. This is due to a bug in which that height 768 is hard-coded in the C++ code. I will be filing a bug report and pull request to alleviate that bug; with the change, this theme works decently for me (but it is rough, not polished). If anyone has thoughts/feedback about publishing it to the add-on server (with appropriate credit to @mattsc, of course!) please let me know.

WARNING: if you use this theme with unmodified Wesnoth 1.15.3 and you make the screen large enough so that the main map panel would be larger than 768 pixels high, the main map disappears, making the theme unusable. This is due to a bug in which that height 768 is hard-coded in the C++ code. I will be filing a bug report and pull request to alleviate that bug; with the change, this theme works decently for me (but it is rough, not polished). If anyone has thoughts/feedback about publishing it to the add-on server (with appropriate credit to @mattsc, of course!) please let me know.
- Attachments
-
message_font_size.lua
- @mattsc's message enlarging code
- (1.64 KiB) Downloaded 392 times
-
_main.cfg
- The main theme of the file
- (45.81 KiB) Downloaded 426 times
-
- Posts: 17
- Joined: December 29th, 2009, 12:42 am
Re: Enlarged Story Line Text?
Thank you. Anything you can do to help would be great. We old farts have trouble with that stuff, to the point where after a while my eyes literally will not focus. The optometrist called it "eyestrain" but I call it a pain in the ass.
Re: Enlarged Story Line Text?
With the latest code in master, there's no longer any need for the message_font_size.lua file, just the main theme file should work. The more general font size code in master should now take care of the messages.
-
- Posts: 17
- Joined: December 29th, 2009, 12:42 am
Re: Enlarged Story Line Text?
Thank you.
Re: Enlarged Story Line Text?
Oh and actually here is the theme file with the snippet to load that lua file eliminated, in case the attempt to load it causes problems.
- Attachments
-
_main.cfg
- (45.38 KiB) Downloaded 375 times
Re: Enlarged Story Line Text?
20 years into it (sort of) I also have eyesight-related issues. So any in-game
magnification is useful. Actually I think the biggest improvement would be
if we could increase the font size of the text messages.
Edit: actually, would it be possible to integrate this into wesnoth eventually?
To simplify this for us semi-handicapped folks (not everyone will find
this thread here for example).
magnification is useful. Actually I think the biggest improvement would be
if we could increase the font size of the text messages.
Edit: actually, would it be possible to integrate this into wesnoth eventually?
To simplify this for us semi-handicapped folks (not everyone will find
this thread here for example).
-
- Posts: 17
- Joined: December 29th, 2009, 12:42 am
Re: Enlarged Story Line Text?
NOTE: My original post was in 2013, and there's been little comment since then. Not to complain, but can't there be a way to enlarge the game dialog for us semi-blind folks? Why not a full-screen dialog overlaying a "watermark" of the game screen at 24-pitch or something like that?
Is there a way to elevate/publicize this issue?
Is there a way to elevate/publicize this issue?
- Pentarctagon
- Project Manager
- Posts: 5730
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Enlarged Story Line Text?
In the Display preferences there's a pixel scale multiplier (scales the whole window) and there's an experimental text scaling option in the advanced preferences.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 17
- Joined: December 29th, 2009, 12:42 am
Re: Enlarged Story Line Text?
Thank you.
Experimental text scaling option is OK, but beyond 125% becomes unreadable (frames don't expand w/text).
Pixel scale multiplier does not seem to have any effect. In any event, I don't see using that, as the map scale is fine.
Mac OS 12.7.6
Wesnoth build v 1,18.3
Experimental text scaling option is OK, but beyond 125% becomes unreadable (frames don't expand w/text).
Pixel scale multiplier does not seem to have any effect. In any event, I don't see using that, as the map scale is fine.
Mac OS 12.7.6
Wesnoth build v 1,18.3
Re: Enlarged Story Line Text?
Are you running Wesnoth in full-screen mode? It might be that it works only in full-screen mode.yogicbrewer wrote: ↑February 7th, 2025, 12:46 am Pixel scale multiplier does not seem to have any effect.
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Enlarged Story Line Text?
The pixel scale multiplier does exactly what you are asking for. A pixel scale of 2x makes each interface pixel take up a four-pixel box on the screen, making it much larger, but the map can still be scaled separately so that it looks the same as before. The text can be up to 16 times its default size with a scale of 4x. On my system (Linux), it takes effect immediately and obviously, and works windowed and full screen. If it's not working for you, that's the problem that needs to be solved.
Maybe someone else with a Mac can check to see if it works there. Possibly you need to restart the game to see the effect on a Mac, or maybe it does only work full-screen there. You also need to have "Automatic scale" unchecked.
Maybe someone else with a Mac can check to see if it works there. Possibly you need to restart the game to see the effect on a Mac, or maybe it does only work full-screen there. You also need to have "Automatic scale" unchecked.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
-
- Posts: 17
- Joined: December 29th, 2009, 12:42 am
Re: Enlarged Story Line Text?
1. I'm running Wesnoth infull screen mode, yes.
3. Rebooted Mac more than once, killed & rebooted game even more. No apparent effect. Also got rid of a campaign ("Modern Warfare" and two associated MP eras) which I suspected of causing issues (a week ago).
4. The experimental font size scalar (under Advanced Preferences) WORKS, but the data frames on the battle screen don't compensate, so I'm limited to 15% enlargement (115%) or the text outgrows the box so much I can't read it. If frame size could vary based on included text size this would be an excellent option, IMHO.
5. Let me know if you cannot see atch OK or need more shots.
2. Tried Pixel Multiplier, it didn't work. NO difference between 1x and 4x. Zero. 3. Rebooted Mac more than once, killed & rebooted game even more. No apparent effect. Also got rid of a campaign ("Modern Warfare" and two associated MP eras) which I suspected of causing issues (a week ago).
4. The experimental font size scalar (under Advanced Preferences) WORKS, but the data frames on the battle screen don't compensate, so I'm limited to 15% enlargement (115%) or the text outgrows the box so much I can't read it. If frame size could vary based on included text size this would be an excellent option, IMHO.
5. Let me know if you cannot see atch OK or need more shots.