Commit Graph

60 Commits

Author SHA1 Message Date
Alexander Szpakowski 36c5259e12 Font objects now have mipmap filter and mipmap sharpness support 2013-01-07 16:31:48 -04:00
Alexander Szpakowski a6f4a3ab0f Removed names of unused parameters to quiet noisy compilers 2013-01-07 07:29:04 -04:00
Alexander Szpakowski e5388ff73b Removed more unnecessary tabs in blank lines 2013-01-07 07:11:40 -04:00
Alexander Szpakowski 1678252b7a Applied patch from issue #542 (texture filtering inconsistencies) in main LÖVE repository 2013-01-01 21:29:38 -04:00
Alexander Szpakowski a8dc813258 Text drawing performance improvements (issue #532) 2012-12-15 22:18:40 +01:00
vrld 6d02057864 Close issue #408: printf-justify alignment.
Add letter_spacing argument to Font::print(). Might be worth to expose to Lua
at some point. Justify alignment may result in mushy/blurred glyphs.
2012-07-08 13:37:09 +02:00
vrld 12f714bf74 Issue #419: Make font:getWidth(str) account for newlines. 2012-07-05 16:15:38 +02:00
Bart van Strien 7793e7f02f CRLF to LF 2012-07-04 14:40:24 +02:00
rude 81c38e22d0 Applied the new style guidelines.
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
vrld d4c59d3508 Fix issue #406: Empty glyphs cause some ATI cards to crash in Font::addGlyph(). 2012-04-03 13:55:12 +02:00
vrld 340ee8442d Fix issue #397: printf does not center string correctly. 2012-03-22 13:11:35 +01:00
Bart van Strien 2ac4a9e6d0 Manually keep track of bound textures, so we don't have to poll each frame
Patch submitted by slime73.
2012-01-10 15:36:18 +01:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
Bill Meltsner 21516fc658 Add padding around every glyph in a Font texture, fixing the fringing seen with scaled text (actually fixes issue #321) 2012-01-08 20:59:52 -06:00
Bill Meltsner 4c5d11d582 Backout changeset e90d89c7b9712297c14ba73eda37ec28f25101f9 2012-01-08 20:14:27 -06:00
Bart van Strien 5fa0a4cfa3 Drastically improve the font scaling quality (issue #321)
Note that it isn't perfect yet, but a lot better.
2012-01-08 14:11:40 +01:00
Bart van Strien 864c800e10 Fix some warnings 2011-12-27 21:25:06 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
vrld 7a513e1434 Make love::Exception safe(r).
Now allows exceptions of arbitrary length.
Now allows catching a non-reference, i.e. catch(love::Exception e).
2011-11-12 21:11:41 +01:00
Bart van Strien 49ec65dbf3 Oops, didn't have a clean tree 2011-11-05 23:17:32 +01:00
Bart van Strien d8666202cd Improve compatibility check (I still can't believe robin was right) 2011-11-05 22:07:15 +01:00
Bart van Strien dc873c24f0 Some exception cleanup 2011-09-11 22:55:34 +02:00
Bart van Strien 96a5a3e402 Catch not just the generic utf8 exception, but a few specific ones as well (bug #244) 2011-09-11 12:51:34 +02:00
Bart van Strien 9199f1be5b Catch ALL the utf8 errors (bug #244) 2011-09-10 15:34:45 +02:00
Bart van Strien 6e630e8987 Fix width for getWrap and catch utf8 decoding errors in getWrap and getSize (issues #230 and #244) 2011-09-03 16:22:21 +02:00
Bart van Strien 190e11d016 Move wrapping to Font::getWrap and make printf use that (fixes issue #230) 2011-09-03 14:31:31 +02:00
Bart van Strien 0d174cfb81 Fix compiler warnings 2011-08-26 12:48:57 +02:00
vrld d420d68048 Add shear transformation and transform object (issue #152).
Add origin parameters to love.graphics.print.

New shear parameters kx,ky for:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print,
- SpriteBatch:add,
- SpriteBatch:addq.

Transform objects apply to:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print.
2011-07-05 14:33:34 +02:00
Bart van Strien b90771d44a Fail gracefully on a utf-8 decoding error (bug #244) 2011-06-24 01:18:48 +02:00
Bill Meltsner 79fd4aa180 fixing font-related segfault bug, thanks to itsnotabigtruck
--HG--
branch : minor
2011-03-10 19:05:05 -05:00
rude 6a2423f104 windows.h #defines min/max by default, causing problems with std::[min, max].
--HG--
branch : minor
2011-03-09 11:01:40 +01:00
Bill Meltsner 6e2da1f26d added the UTF8-CPP library for unicode support, and added unicode printing support.
--HG--
branch : minor
2011-03-06 20:03:46 -05:00
Bart van Strien 2115cf19b9 Fixed a couple of compiler warnings in minor branch
--HG--
branch : minor
2011-03-06 17:09:38 +01:00
Bill Meltsner cbff71d089 New font engine is implemented and appears to work perfectly. Bugs may be discovered and the internals can certainly be optimized and improved (at some point, perhaps, a less naive packing algorithm would be nice) but for now, it's good to go.
--HG--
branch : newfont
2011-03-06 05:02:35 -05:00
Bill Meltsner 9d38cba626 brutally murdered padding and predefined glyph loading
--HG--
branch : newfont
2011-03-05 23:37:36 -05:00
Bill Meltsner 94b4319878 trashed old unnecessary font stuff - compiles, but obviously will not work yet
--HG--
branch : newfont
2011-03-05 23:17:36 -05:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
rude 31c9995082 Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int. 2011-01-09 16:28:30 +01:00
vrld 3587cd4320 Fix issue #165 and part of #129 2011-01-07 14:42:51 +01:00
vrld e3067ff33d Fix issue #136 - Filter for Imagefonts. 2011-01-07 14:08:10 +01:00
vrld 28df1edf03 Code cleanup: remove unnecessary `print' routines 2011-01-02 22:58:53 +01:00
rude 6aa8399aa8 Made love.vcproj buildable again. 2010-11-25 15:13:08 +01:00
Bill Meltsner 500e0f1417 image fonts now print from the upper left like truetype fonts do (fixes #100) 2010-11-09 19:29:00 -05:00
Bill Meltsner 3cb3537db0 Added vrld's text-rotation-fixing patch (finally fixes #56) 2010-11-09 18:56:34 -05:00
Bill Meltsner a34640bcfd (Hopefully) fixed bug where extended ASCII characters would not display properly. 2010-10-14 16:17:21 -05:00
Bart van Strien fdd8393b13 Fix for blurry text, bug #85 2010-10-11 18:56:10 +02:00
Bill Meltsner 8800fa982a made fonts actually print from the top-left. 2010-10-06 19:33:07 -04:00
Bart van Strien 7e318cc9b2 Let's hope I finally smashed those mem leaks 2010-09-18 20:22:29 +02:00
Bart van Strien 2b273c0081 Hopefully fixed more memory leakage in fonts 2010-09-18 10:07:52 +02:00
Bill Meltsner 046f2a3084 Fixed some bugs with font drawing and reverted the display list change - it was causing problems with multiple fonts 2010-08-28 11:42:37 -05:00