Commit graph

100 commits

Author SHA1 Message Date
VelocityRa
2b06c02d7d GRAPHICS: Add MacText::appendText() variants that accept text format args
Made 1 helper method and 1 function to reduce duplication size as much
as possible and still keep them useful for other purposes.
2017-07-17 23:45:22 +02:00
VelocityRa
b127beb03c GRAPHICS: Fix bug in MacText::draw() on calculating bounding rect size
Change is _surface->w to _surface->h in the fourth arg to Common::Rect
2017-07-17 23:45:22 +02:00
VelocityRa
b28a4a8c3d GRAPHICS: Fix MacText::appendText by resizing _textLines
Also fix an off-by-one error
2017-07-17 23:45:22 +02:00
Tobia Tesan
6a741a88c9 GRAPHICS: Pass interlinear as constructor argument to MacText 2017-05-02 21:01:23 +01:00
Tobia Tesan
ed2f09b13f GRAPHICS: Delete MacFont in MacText 2017-04-30 09:48:08 +02:00
Tobia Tesan
af664fe757 GRAPHICS: Use MacFont in lieu of Graphics::Font in MacText 2017-04-30 09:48:08 +02:00
stevenhoefel
7d044c570c GRAPHICS: Recalculate text area sizing if interLinear is changed. 2017-02-07 16:26:59 +11:00
Eugene Sandulenko
6ea020d5f1 GRAPHICS: Cleanup MacText code 2017-02-06 08:41:09 +01:00
Eugene Sandulenko
bbb3c5ae9a GRAPHICS: Removing Director-specific hack in text width calculation 2017-02-04 16:29:24 +01:00
Eugene Sandulenko
906d94a742 GRAPHICS: Enforce font recomputation in MacText 2017-02-04 16:05:01 +01:00
Eugene Sandulenko
91d85feace GRAPHICS: Correctly process empty lines in MacText 2017-02-04 15:31:44 +01:00
Eugene Sandulenko
04a2a8ba27 GRAPHICS: Hid noisy debug messages in MacText 2017-02-04 15:17:13 +01:00
Eugene Sandulenko
74696f6c92 GRAPHICS: Fix MacText rendering when 3 fonts meet on one line 2017-02-03 18:32:44 +01:00
Eugene Sandulenko
c832865875 GRAPHICS: Fix MacText wrapping when formatting starts in the middle of a line 2017-02-03 10:05:36 +01:00
Eugene Sandulenko
7b7a0fa3ad GRAPHICS: Fix surface reallocation in MacText 2017-02-02 23:53:30 +01:00
Eugene Sandulenko
165f5f1784 GRAPHICS: Fix MacText wrapping. Kudos to wjp 2017-02-02 23:41:58 +01:00
Eugene Sandulenko
3e47d7abf3 GRAPHICS: Fix MacText splitter, so less empty font chunks are generated 2017-02-02 20:39:34 +01:00
Eugene Sandulenko
c30df01130 GRAPHICS: More optimization for empty strings 2017-02-02 10:11:07 +01:00
Eugene Sandulenko
255c76b3ac GRAPHICS: Optimize for empty substrings in MacText 2017-02-02 09:18:08 +01:00
Eugene Sandulenko
d39404c8e8 GRAPHICS: Fix rendering of MacText with font change in the middle of the string 2017-02-01 19:06:36 +01:00
Eugene Sandulenko
6e3e8911c1 GRAPHICS: MacText fixes for in-the middle style change splitting 2017-02-01 18:58:35 +01:00
Eugene Sandulenko
6fbb82f85b GRAPHICS: Add more debug output to MacText 2017-02-01 18:36:25 +01:00
D G Turner
32667eeaa9 GRAPHICS: Fix GCC Compiler Warnings. 2017-02-01 01:17:53 +00:00
Eugene Sandulenko
cc59811205 DIRECTOR: Adjust text wrapping by one pixel 2017-02-01 01:07:14 +01:00
Eugene Sandulenko
d4e4a20cc5 GRAPHICS: Implement rendering of rich MacText 2017-01-31 23:14:37 +01:00
Eugene Sandulenko
c15e063bbd GRAPHICS: Store more metainformation on lines in MacText 2017-01-31 23:14:37 +01:00
Eugene Sandulenko
93265c6d41 GRAPHICS: Fix font transtion formatting for MacText 2017-01-31 23:14:37 +01:00
Eugene Sandulenko
0884aeeba3 GRAPHICS: More fixes to MacText formatting 2017-01-31 19:06:27 +01:00
Eugene Sandulenko
89e8bdc444 GRAPHICS: More fixes to MacText rich text formatting 2017-01-31 19:02:15 +01:00
Eugene Sandulenko
c4f73012e5 DIRECTOR: Generate font style runs for MacText 2017-01-31 18:46:33 +01:00
Eugene Sandulenko
95be2f2b23 GRAPHICS: Overwhauling of MacText rich formatting 2017-01-31 18:46:33 +01:00
Eugene Sandulenko
119e1bd30d GRAPHICS: More work on rich text formatting 2017-01-30 22:58:32 +01:00
Eugene Sandulenko
7b24fb0b01 GRAPHICS: Initial work on rich text formatting in MacText 2017-01-30 10:10:22 +01:00
Eugene Sandulenko
0691c4e82e GRAPHICS: Pass MacWindowManager to MacText constructor 2017-01-29 14:19:28 +01:00
Eugene Sandulenko
e9bd946043 GRAPHICS: Initial code for MacText formatting 2017-01-29 00:54:31 +01:00
Eugene Sandulenko
ca55163ea1 JANITORIAL: Fix code formatting 2017-01-28 12:14:49 +01:00
stevenhoefel
837b3b22e5 GRAPHICS: MacText calculate longest string inside maxWidth and add alignment. 2017-01-17 22:15:43 +11:00
stevenhoefel
2e48529fa1 DIRECTOR: Utilise MacText class to provide Text Wrapping. 2017-01-15 18:42:50 +11:00
D G Turner
8ae904e154 GRAPHICS: Correct Unsigned vs. Signed Comparison Compiler Warning. 2017-01-10 03:13:08 +00:00
Eugene Sandulenko
57864f5e6c GRAPHICS: Implemented MacText::replaceLastLine() 2016-12-22 18:16:54 +01:00
Eugene Sandulenko
88b9dd3472 GRAPHICS: Simplify MacText 2016-12-20 21:49:29 +01:00
Eugene Sandulenko
2d6c582805 GRAPHICS: Implement surface reallocation in MacText 2016-12-20 21:49:29 +01:00
Eugene Sandulenko
16b0cde5fb GRAPHICS: Implemented partial MacText drawing 2016-12-20 21:49:29 +01:00
Eugene Sandulenko
76ffd9cccb GRAPHICS: Fix initialization 2016-12-19 09:26:56 +01:00
Eugene Sandulenko
ffea222f5b GRAPHICS: Added stubs for pasting text to MacText 2016-12-16 19:47:19 +01:00
Eugene Sandulenko
d6126ffcfa GRAPHICS: Implemented blitting code for MacText 2016-12-15 18:18:12 +01:00
Eugene Sandulenko
2f7879d118 GRAPHICS: Restrinct MacText to designated width 2016-12-15 18:07:48 +01:00
Eugene Sandulenko
6329f73c9e GRAPHICS: Implemented basic rendering for MacText 2016-12-14 20:10:32 +01:00
Eugene Sandulenko
aecc17e5a5 GRAPHICS: Further work on MacText class 2016-12-14 20:10:32 +01:00
Eugene Sandulenko
34a9c588b0 GRAPHICS: Added stub for MacText class 2016-12-14 20:10:32 +01:00