Commit graph

88 commits

Author SHA1 Message Date
Charles Dang
c198be1fa8 Removed the SDL_TTF and GUI1 font rendering API and associated functions
This removes all functions related to:
* GUI1 font formatting
* GUI1 font rendering
* Manual text surface size calculations
* The font description interface. While it wasn't exclusive to the TTF rendering system,
  it was unused by Pango/Cairo rendering.

A huge chunk of the help browser code was commented out since we don't have font::line_width anymore.
Likewise, a hack was added to the GUI2 text box since we don't have have get_max_height anymore.

font::is_cjk_char was retained (as well as some related helpers) since they might be useful
later.

I'll leave it to someone else to update the CMake/Scons files to remove TTF as a build
dependency.
2018-03-26 14:08:45 +11:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
Charles Dang
f4a1abdb9b Fonts: added script font family 2018-02-14 14:39:51 +11:00
Charles Dang
6bd9740f53 Fonts: actually got light weight variant font support working
This replaces the broken implementation I added in fb6c85e70b.
See documentation in data/hardwired/fonts.cfg for explanation as to why it didn't work and
why this does.

Currently "light" is set to Lato Light, which is weight 300. Regular is weight 400.
2018-02-14 04:05:46 +11:00
Charles Dang
52cba5fc63 Enabled Lato for GUI1 and adjusted assigned sizes accordingly
Since GUI1 widgets seem to rely on the given font size values in font.hpp
for their dimensions, those are unchanged. ThemeWML-provided sizes were adjusted,
and larger sizes assigned to elements that were too small with the new font.

Theme element rects were also adjusted as necessary.
2016-05-18 08:05:02 +11:00
Martin Proud
30fefe488a Leaving Lato-Regular.ttf out due to GUI1 reasons
Eventually, we will add the font to the order list.
2016-03-30 02:23:48 -05:00
ancestral
353a9c38e7 Lato is now the new game font. Initially, this will be limited to GUI2, but as tech is updated in the project, we hope to make Lato the new default everywhere in the game. 2016-03-30 01:46:02 -05:00
Elvish_Hunter
4f2c15a065 Updated DejaVu fonts to version 2.35
The following codepoints were added:
* 1735 - 1736
* 1739
* 1744
* 3647
* 8381
* 9886 - 9887
* 43000 - 43001
* 64471 - 64472
* 64475 - 64479
* 64484 - 64487
2016-02-15 17:39:39 +01:00
Ignacio R. Morelle
4265527a90 ttext: Add support for selecting monospace font family
This selects DejaVu Sans Mono instead of whatever sans serif font is the
default for the current locale is. I'm not entirely sure what to do to
handle non-Western European languages since this is intended to be used
for displaying code or debug info anyway.

Because I can't be bothered to figure out how the codepoint fallback
works for GUI1, I'm only adding support for using this with the
Pango/Cairo ttext wrapper, which is used by GUI2. I'm also leaving it up
to fontconfig to find the correct font file for the font when selected.
Hopefully this will suffice for now.
2015-05-30 20:30:06 -03:00
Charles Dang
d9ed10acdb Fixed indent 2015-03-08 17:41:10 +11:00
Chris Beck
d4c1a42f89 add DejaVuSans-Bold font style for GUI1, help dialogs 2015-03-07 14:35:45 -05:00
Chris Beck
21bf262965 fix bug 22376: use DejaVuSans-Oblique for italicized characters 2015-03-07 14:35:45 -05:00
Charles Dang
59b57fab95 Updated DejaVu Sans to 2.34
The following codepoints were added:
* 8378
* 10858-10859
* 11807
* 42816-42817
* 42912-42922
* 128512
* 128529
* 128533
* 128535
* 128537
* 128539
* 128543
* 128550-128551
* 128558-128559
* 128561-128562
* 128564
2015-01-09 13:06:03 +11:00
Ignacio R. Morelle
cdaf2b14aa Move data/hardwired/tips.cfg to data/tips.cfg
Since the GUI2 titlescreen took over, the path to tips.cfg is not
hard-coded in the engine anymore; in fact, this commit also updates that
path, which is in data/gui/default.cfg.
2014-02-13 22:28:02 -03:00
fendrin
ca3f4f6a44 Add some tips regarding the editor's usage. 2013-12-31 16:29:37 +01:00
Ignacio R. Morelle
fbd8f6ae59 Ran wmlindent 2012-01-11 21:49:32 +00:00
Nils Kneuper
46a34091c7 change the font used for CJK translations (part1) 2012-01-06 13:31:22 +00:00
Steven Panek
982bfeeec2 Restored the DSU tip. 2011-10-20 23:32:31 +00:00
Steven Panek
b6f1068b83 Cover a few missed parts of the Hangul Syllables plane. 2011-10-07 06:31:35 +00:00
Steven Panek
85426d239d Uncapitalized 'Liminal'. 2011-09-09 21:49:57 +00:00
Steven Panek
235c05c1a7 Improved the liminal part of the alignment tip. 2011-09-09 21:47:41 +00:00
Fabian Müller
4954c1bd88 Added a tip for the liminal alignment. 2011-09-08 16:39:36 +00:00
Steven Panek
2033e95b30 Commented out the font loading code for Junicode,
...for there is no reason to try to load that font right now.
2011-06-19 17:21:43 +00:00
Steven Panek
053d5e374e Completed the removal of Liminal. 2011-05-27 21:13:46 +00:00
David Philippi
82b4d7ac77 complete update of DejaVuSans.ttf 2011-03-24 16:29:56 +00:00
Steven Panek
e9fd8a50f5 Did some reordering. 2011-03-20 11:35:06 +00:00
Steven Panek
3a767d8fff Cover the runic plane with Junicode. 2011-03-20 11:17:18 +00:00
Alexander van Gessel
532ff83ef2 Un-hardwire the [language] block in data/hardwired/english.cfg.
Move the file out of that dir
2010-12-27 11:27:15 +01:00
Alexander van Gessel
20d10a972a Read names of attack types from data/hardwired/english.cfg 2010-12-27 06:11:14 +01:00
Anonymissimus
19a7fba498 fixed tip wording 2010-11-30 13:46:40 +00:00
Steven Panek
8c6ad118d6 'a enemy' -> 'an enemy'. 2010-09-27 05:53:33 +00:00
Steven Panek
04951af063 Applied patch #1964 with modifications. 2010-09-15 21:08:55 +00:00
Steven Panek
648b25a794 Removed an obsolete tip; moved DSU's tip to __UNUSED__'s domain. 2010-09-14 01:24:54 +00:00
Steven Panek
6b1cbcb407 Merged all duplicate domains,
...added some new rules; uncommented some older ones; applied pofix.
2010-09-13 23:18:35 +00:00
Steven Panek
d784c34fd2 Applied file #10184 from patch #1926 with modifications. 2010-09-12 04:20:34 +00:00
Mark de Wever
a0d1469ea1 Make the tips source italic again. 2010-08-30 20:42:09 +00:00
Mark de Wever
7a27f99716 Removed the statitics upload code. 2010-08-27 18:07:55 +00:00
David Philippi
d61a2d80e6 font update 2010-08-23 18:04:14 +00:00
Steven Panek
40d0b39aca Reverted 2010-08-03T04:33:25Z!Majora700@gmail.com. 2010-08-03 04:55:33 +00:00
Steven Panek
d724ee5962 Reverted revisions 2010-08-02T09:59:23Z!fabianmueller5@gmx.de and 2010-08-02T22:09:39Z!fabianmueller5@gmx.de. 2010-08-03 04:33:25 +00:00
Fabian Müller
3ed2989ac4 Better description for the liminal alignment. 2010-08-02 23:16:09 +00:00
Fabian Müller
d61d638bd1 Added a translatable string that descirbes the liminal alignment. 2010-08-02 22:09:39 +00:00
Steven Panek
9c74e7292e Converted more apostrophes; ran pofix. 2010-06-29 21:26:06 +00:00
David Philippi
df5d67fe00 font update 2010-06-26 15:20:48 +00:00
Steven Panek
4bb4eac61f Converted more apostrophes; fixed a screw up; ran pofix. 2010-06-22 00:17:06 +00:00
Steven Panek
e4317fccd4 Added some cola to some source strings. 2010-06-15 21:10:37 +00:00
Steven Panek
ed55dc0e71 Added missing conversions; ran pofix on everything. 2010-06-15 21:07:43 +00:00
Steven Panek
ae7e5549e3 Fixed a screw up in which em dashes were being used...
...instead of horizontal bars.
2010-06-11 05:00:56 +00:00
Steven Panek
9ef8c85b67 Reworked some strings to be less awkward;...
...fixed screw ups within those strings (which were using em dashes
instead of horizontal bars).
2010-06-11 04:55:56 +00:00
Nils Kneuper
3ec3932a65 revert 2010-06-06T00:35:38Z!Majora700@gmail.com by Espreon...
(initial commit msg: Fixed a screw up in which em dashes were being
used instead of horizontal bars.)

reason: he explicitly asked me not to apply the pofix change, this is
only possible if it is not there since pofix is always run before
committing translation files
2010-06-06 09:46:48 +00:00