Johannes Schickel
09c634dd55
GRAPHICS: Allow TTFFont to cache glyphs when required.
...
This should allow TTFFont to display UTF-32 characters from fonts.
2013-11-23 21:34:54 +01:00
Johannes Schickel
13d470dc61
GRAPHICS: Get rid of _glyphSlots in TTFFont.
2013-11-23 21:34:54 +01:00
Johannes Schickel
afa3f50b8a
GRAPHICS: Let Font take uint32 as character codes.
...
This is required to support UTF-32 strings but does not make them work
automatically!
2013-11-23 21:34:54 +01:00
Narek Mailian
ece8b7fb65
GRAPHICS: Fix fonts/bdf.cpp to allow for 32bpp to be used
2013-08-08 08:27:11 +02:00
Johannes Schickel
5111746911
GRAPHICS: Take advantage of Surface::getPixels.
2013-08-03 04:02:49 +02:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
b4196e48b1
GRAPHICS: Add a DPI parameter to loadTTFFont.
...
Will be used by WME.
2012-08-09 03:13:00 +02:00
Johannes Schickel
3b212fdb51
GRAPHICS: Remove unused function ftFloor26_6 in ttf.cpp.
2012-05-03 23:25:00 +02:00
Alyssa Milburn
b470c9af28
BASE: Free TTFLibrary singleton on shutdown.
...
This uses a helper function because TTFLibrary is internal.
2012-03-28 19:17:53 +02:00
Alyssa Milburn
fdee01bf04
GRAPHICS: Don't try to delete static BDF data.
2012-03-28 19:16:52 +02:00
Alyssa Milburn
92327c7991
GRAPHICS: Render TTF glyphs at the right locations.
...
Or at least using the fields used by the FreeType examples.
2012-03-19 23:00:14 +01:00
Alyssa Milburn
9a13b34549
GRAPHICS: Fix TTF glyph drawing at negative Y positions.
2012-03-19 22:57:48 +01:00
Johannes Schickel
66c3279b2f
GRAPHICS: Obtain pointer to dst surface after bounds checks in TTF renderer.
...
This should really make sure we are not drawing outside the surface bounds.
2012-02-02 02:39:41 +01:00
Johannes Schickel
6402d30874
GRAPHICS: Use monochrome font hinter for TTF's monochrome loading.
2012-02-02 02:39:40 +01:00
Johannes Schickel
f63df3bf7b
GRAPHICS/GUI: Implement charset mapping for TTF fonts.
...
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00
Johannes Schickel
9f3fbe1bd7
GRAPHICS/GUI: Implement kerning support for Font.
...
This adapts the related graphics code, which is the generic Font API and the
TTF font implementation.
It furthermore adapts the GUI to properly take care of kerning in text input
widgets.
2012-01-29 16:26:20 +01:00
Johannes Schickel
843b9f9665
GRAPHICS: Add a TTF font class using FreeType2.
2012-01-29 16:26:20 +01:00
Filippos Karapetis
103ae27d3a
GRAPHICS: Silence a false positive warning in MSVC
2012-01-07 22:45:59 +02:00
Johannes Schickel
d2a210feb5
GRAPHICS: Properly return 0 for late BDF cache loading fails.
2012-01-06 15:53:22 +01:00
Johannes Schickel
243de5950f
GRAPHICS: Slight cleanup in BDF code.
2012-01-06 15:52:55 +01:00
Johannes Schickel
08b6f28d54
GRAPHICS: Rework BDF font code.
2012-01-06 15:38:29 +01:00
Chris Warren-Smith
59739a7a0e
BADA: Initial BADA port implementation
2011-08-21 16:37:06 +10:00
Christoph Mallon
23a0f5318c
JANITORIAL: Remove trailing empty lines.
2011-08-07 13:53:33 +02:00
Johannes Schickel
a79f529f4c
GRAPHICS: Fix possible memory leak in BdfFont code.
2011-07-01 21:55:21 +02:00
Johannes Schickel
fa5f8dc703
GRAPHICS: Rename NewFont to BdfFont.
2011-07-01 21:53:01 +02:00
Johannes Schickel
9e3366d66e
GRAPHICS: Format NewFont code with astyle.
2011-07-01 21:20:01 +02:00
Johannes Schickel
8201df7bb6
GRAPHICS: Move NewFont code to a separate file.
2011-07-01 21:10:25 +02:00
Julien
7a882600c6
GRAPHICS: Allocate Common::PEResources on the heap in WinFont::loadFromPE()
2011-06-23 15:11:36 +08:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Thierry Crozat
592cca5402
GRAPHICS: Get rid of kSODFont (ScummFont)
...
OSD is now using the kGUIFont instead. The main advantage is that
the kGUIFont can be used for translated text while only ASCII
characters were present in ScummFont.
2011-06-06 23:20:08 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
Johannes Schickel
3fd919060c
GRPAHICS: Do not access Surface::bytesPerPixel anymore.
2011-04-17 20:58:08 +02:00
Matthew Hoops
4dba6962f5
GRAPHICS: Fix a missing 'f'
...
Thanks, fuzzie
2011-03-07 11:40:54 -05:00
Matthew Hoops
550cff84f8
GRAPHICS: Add support for PE FON files
...
This hopefully will work out of the box, but requires testing
2011-02-23 14:43:18 -05:00
Matthew Hoops
a2a0b13de2
COMMON: Begin to merge some NE/PE code
...
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Matthew Hoops
4e56df4dbd
GRAPHICS: Begin to parse Win1 fonts based on our sole Hugo1 sample (still WIP)
...
svn-id: r55227
2011-01-13 16:06:35 +00:00
Matthew Hoops
095384b90f
GRAPHICS: Use the pixel height instead of the ascent as the WinFont height
...
svn-id: r55224
2011-01-13 14:45:14 +00:00
Matthew Hoops
bee912ff54
GRAPHICS: Add support for Windows FON/FNT fonts
...
As required by Hugo and Mohawk.
svn-id: r55120
2011-01-04 20:39:27 +00:00
Max Horn
fb5e747565
GRAPHICS: Change font code to be identical on all platforms
...
svn-id: r46309
2009-12-09 16:44:48 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Chris Apers
500481c4ec
Cleanup: remove obsolete code (PalmOS 68K version not supported anymore)
...
svn-id: r28803
2007-09-01 19:13:04 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Torbjörn Andersson
49af7d44c2
Applied patches from bug report #1276480 , "GUI: Accented characters". This
...
changes quite a lot of things in the font renderer and the convbdf tools, so
there may be regressions, but we want this feature for 0.9.0.
svn-id: r23208
2006-06-20 22:50:27 +00:00
Torbjörn Andersson
f57f024822
Format the guifont[] data for better readability
...
svn-id: r22916
2006-06-04 15:39:08 +00:00
Max Horn
9cec516e51
Moved fonts to a new dir graphics/fonts
...
svn-id: r20800
2006-02-20 20:42:03 +00:00