-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Std r11091 aliasing fonts #664
base: master
Are you sure you want to change the base?
Std r11091 aliasing fonts #664
Conversation
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11091 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # Simutrans.sln # src/simutrans/sys/simsys.cc NOTE: Changes to symsys have been skipped. Need to check this out.
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11093 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # src/simutrans/display/simgraph16.cc Changes to simgraph16 related to dr_get_system_font() have been skipped. Need to recheck it.
…g font git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11094 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11095 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # simutrans/text/be.tab # simutrans/text/bg.tab # simutrans/text/ca.tab # simutrans/text/cn.tab # simutrans/text/cz.tab # simutrans/text/de.tab # simutrans/text/dk.tab # simutrans/text/en.tab # simutrans/text/en/depot.txt # simutrans/text/eo.tab # simutrans/text/es.tab # simutrans/text/et.tab # simutrans/text/fi.tab # simutrans/text/fp.tab # simutrans/text/fr.tab # simutrans/text/gr.tab # simutrans/text/hr.tab # simutrans/text/hu.tab # simutrans/text/id.tab # simutrans/text/it.tab # simutrans/text/ja.tab # simutrans/text/ko.tab # simutrans/text/lt.tab # simutrans/text/nl.tab # simutrans/text/no.tab # simutrans/text/pl.tab # simutrans/text/pt.tab # simutrans/text/ro.tab # simutrans/text/ru.tab # simutrans/text/sk.tab # simutrans/text/sv.tab # simutrans/text/th.tab # simutrans/text/uk.tab # simutrans/text/zh.tab # tools/get_revision.ps1
…r11091-aliasing-fonts
Headless server does not need a font as it's never shown anyway. git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11127 8aca7d54-2c30-db11-9de9-000461428c89
…d-r11091-aliasing-fonts # Conflicts: # documentation/cherry-picked-commits.txt # gui/banner.h
…nt() git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10908 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # src/simutrans/dataobj/environment.cc
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10910 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10925 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10926 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11049 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11081 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # simutrans/history.txt
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11111 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11112 8aca7d54-2c30-db11-9de9-000461428c89
…ask for wide font names git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11129 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # src/simutrans/sys/simsys.cc
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11130 8aca7d54-2c30-db11-9de9-000461428c89
…d-r11091-aliasing-fonts
…d-r11091-aliasing-fonts
…d-r11091-aliasing-fonts # Conflicts: # display/font.cc
…d-r11091-aliasing-fonts
This patch focuses on font renovation. Check ex15-2406-refine-font for the corresponding ex-15 branch. |
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11268 8aca7d54-2c30-db11-9de9-000461428c89
Thank you for this. Unfortunately, I am getting a compile error with this in Visual Studio: I get FT_Bitmap_Init showing as undefined in line 299 of font.cc. |
I think the link to include freetype is missing (probably only links to an older version that exists) since FT_Bitmap_Init clearly exist here. Please check if the additional link corrections are correct |
…ctory is now real tooltip git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10081 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # boden/grund.cc
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10106 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # display/simgraph0.cc # display/simgraph16.cc # gui/components/gui_chart.cc # gui/minimap.cc # gui/simwin.cc
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10534 8aca7d54-2c30-db11-9de9-000461428c89
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11001 8aca7d54-2c30-db11-9de9-000461428c89
Thank you very much for your work on this. Just a note to say that I am exceptionally busy in work this week, but should be able to look at incorporating this next week. Thank you again. |
Thank you for this. Apologies for not having had a chance to test this until now. Unfortunately, I am currently getting a compile error with this: font.cc(301,2): error C3861: 'FT_Bitmap_Init': identifier not found |
Since there are no such errors on my PC and git action, I think this problem is caused by an incomplete build environment on your computer. The freetype libraries are in the repository, so if they are correct it's probably best to use them. It would be ideal if new developers could quickly set up a build environment using MSVC, with the best possible environment built using only what is in the repository. If you try this and still cannot build, please obtain the appropriate libraries, update the files, or change the include folder. A search for freetype.h on your computer may reveal where the old freetype files (missing the correct ftbitmap.h) is located. |
Thank you for that - incorporating your changes to the Visual Studio project fixed the compile issue that I was having and I have now been able to get this working. Overall, this is very good and definitely a substantial improvement over the current arrangement. Two things will need consideration before we incorporate this, however: defaults and the cent symbol. The current default for my computer is Segoe UI regular 11 point. On my 4k and 1440p monitors, this is too small to be easily readable. What I am currently not clear on is how these defaults are chosen - Segoe UI is a Microsoft font, so presumably a different font would be chosen in Linux. Is the choice based on the system default? I suspect that a bold font may be better, especially for showing town and stop names. Some fonts, however, appear larger in any given point size than others. For example, Verdana bold works well in 11pt on my Windows system. Liberation Sans is a good font for Linux systems (I also have it installed in Windows, but this is not a default for Windows), but this needs to be in 12pt to be readable. Again, for town and stop names, bold makes it more readable, but regular is readable for ordinary dialogues. Do you have any idea how defaults can be set sensibly to work with different systems (and how defaults can actually be set)? The second thing is the cent symbol. Simutrans has always used the ¢ symbol for its currency, but in all of the TrueType fonts, this shows as the $ symbol, even in fonts (e.g. Liberation Sans) which I have confirmed have the ¢ symbol. Only the traditional Prop Latin (etc.) fonts work with the correct ¢ symbol. Do you have any idea what might be causing this issue and how to go about rectifying it? Thank you for your work on this - it is much appreciated. |
…nt() git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@10908 8aca7d54-2c30-db11-9de9-000461428c89 # Conflicts: # src/simutrans/dataobj/environment.cc retake for missing changes
Thank you for testing.
The default font size depends on the setting of theme. The menu bar and some icons change size depending on the theme.
The first font selected is the system font of the OS. The best font varies depending on the language.
The default font size of 11 was the standard choice, but I found it too small so I increased it to 12.
I have submitted the same request to standard in the past. Hajo's repository allows two font weights to be displayed simultaneously. So while standard doesn't yet have the ability to render two font weights, we could consider implementing that first. I've already tested the bold patch using the code from Hajo's repository and posted it in the thread above.
The only way to properly solve this issue would be to separate out the currency unit, make the currency symbol selectable in the pakset and translations, and make the code compatible everywhere in the UI, but that would definitely require a lot of work. |
Thank you for replying. As to currency symbols, I had thought that these were already customised for translations? I am not clear on how it is possible for just changing the font to substitute the ¢ symbol for the $ symbol. Is there not a Unicode standard for both symbols? How is the currency symbol currently handled, do you know? Thank you for the reference to the forum thread - that is useful. It would definitely be helpful to allow specifying bold text in certain places, especially for station and town names - it is likely to be difficult to read these in Extended otherwise. Thank you again for your work on this. |
https://github.com/Ranran-the-JuicyPork/simutrans-ex-fix/tree/2406-bold-font |
As far as we can see, function void money_to_string(char * p, double f, const bool show_decimal) is commonly used to display monetary amounts, and all it does is add a "$" to the end of value to complete the string. EDIT:
|
Font Renovation