Commit Graph
384 Commits
Author SHA1 Message Date
Eugene Sandulenko 1c39564262 GRAPHICS: MACGUI: Properly process missing images in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 91a829db69 GRAPHICS: MACGUI: Implemented image rendering in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 34acf247be GRAPHICS: MACGUI: Used switch() statement in MacText formatting parsing 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 7ddffd0a44 GRAPHICS: MACGUI: Fix computing of cursor position for indented lines in MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 01263461a5 GRAPHICS: MACGUI: Fix bullet lists indentation in the Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 49ef52079c GRAPHICS: MACGUI: Improved blockcode rendering in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko f53d39741d GRAPHICS: MACGUI: Added tag for switching font to MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko c668169636 GRAPHICS: MACGUI: Encode images into MacText from Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 03a758c3b1 GRAPHICS: MACGUI: Proper indentation of bullet lists in Markdown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 0294d607de GRAPHICS: MACGUI: Made inentation in Markdown dynamic and fix it for long lines 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 168f4b7b3a GRAPHICS: MACGUI: Apply indentation to MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 2df991721d GRAPHICS: MACGUI: Added initial code for indentaiton in MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 125d3dfa69 GRAPPHICS: MACGUI: Added a way to get link under cursor for MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 6044980b2d GRAPHICS: MACGUI: Paint links blue in MarkDown 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 5b00cc3f56 GRAPHICS: MACGUI: Implemented color on/off for MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 85f54663f5 GRAPHICS: JANITORIAL: More logical text formatting processing sequence 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 3cfc80e110 GRAPHICS: MACGUI: Properly set default text color in MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko f086c5cd13 GRAPHICS: MACGUI: Added more debug output to MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko a314def2cc GRAPHICS: MACGUI: Added Header formatting, synced with stripFormatting(), fixed closing formatting 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 32f7eec2c6 GRAPHICS: MACGUI: Remove using of \015 as a binary MacText formatting
It was not used, and moreover \015 is \x0d which is \r. oops
2023-09-17 00:56:28 +02:00
Eugene Sandulenko 027e3794d3 GRAPHICS: MACGUI: implemented italic and bold Markdown output 2023-09-17 00:56:28 +02:00
Eugene Sandulenko d10f80a8c9 GRAPHICS: MACGUI: Implement equivalent of tag opening and closing for MacText 2023-09-17 00:56:28 +02:00
Eugene Sandulenko 115b30779c GRAPHICS: MACGUI: Fix MacText rendering in 32bpp mode 2023-08-16 01:12:31 +02:00
BLooperZ 289dfabb42 MACGUI: Encode UTF-8 in windows mode
This fixes hebrew rendering of PDA in Pink
also reverts commit 2fe812db97.
2023-06-29 09:50:04 +03:00
D G Turner 0e472905ad GRAPHICS: MACGUI: Fix Set But Unused Variable GCC Compiler Warning
These were left over from "Fix alignment issues for multiline text"
recent commit.
2023-06-25 03:44:59 +01:00
Harishankar Kumar 283b5c4b20 GRAPHICS: MACGUI: Fix kMacRoman fonts issues with special characters
This commit removes Mac Roman from plainByteMode(), this partially
reverts commit `9d4ac18be542eed5fdbb52519fd95ea7ac47a9e4` from
PR #3823, this change breaks Hebrew rendering in Pink.

Fixes rendering of texts in `theapartment` using MacRoman fonts.
2023-06-21 20:18:39 +03:00
Harishankar Kumar b7e09d8259 GRAPHICS: MACGUI: Fix alignment issues for multiline text
This patch fixes the alignment issue for multiline text in text castMember
it increases the line height of each line by one, this added change over
multiple lines result in fixed alignment. This patch also removes the height
reduction due to empty line (which cumulatively caused the alignment issue).

`DATA/SUPPORT/INTRODUCTION@111` of 'warlock-100' has this alignment issue
where the text "The Blaster" was above the button it was supposed to be.
2023-06-21 20:18:39 +03:00
Scott Percival 14c7756d06 GRAPHICS: MACGUI: Fix edge cases of getMouseWord 2023-03-24 21:27:34 +01:00
Roland van Laar 157b1d9a48 GRAPHICS: MACGUI: keep formatting in empty text
When text is emptied by user action, e.g. backspace, the formattting
should be preserved.

In the game Majestic a text box for user input would start out with the
correct formatting, i.e. green text on a black background. When the user
would then press backspace till the text was gone, the method
`MacText::getTextChunk` would return an empty string, with the
formatting removed. If the user started typing again the text would use
the default formatting with black text on black background.

Fixes: https://trello.com/c/POQZRCEO/546-text-doesnt-show-in-majestic-in-text-box
2023-02-17 15:02:52 +01:00
Roland van Laar d33005f8b2 JANITORIAL: GRAPHICS: print fgcolor in base 10
All colors in debug output in mactext use base 10
where this line was in base 16.
2023-02-17 15:02:52 +01:00
Eugene Sandulenko e5c1ef3fbb DIRECTOR: Fix regression from 48740a2ad1
The color values went inverted, but in several places they left
untouched.

In general, it is not a good idea to have this hardcoded, but at least
now we have this addressed.
2023-02-10 00:53:38 +01:00
elasota 261ced8ca4 GRAPHICS: Fix getRowCol returning uninitialized variable nsx if there were no chunks for the chosen line. 2022-11-28 18:43:55 +01:00
Hubert Maier a3ec89bf51 JANITORIAL: GRAPHICS: Correct Spelling Mistake
begining -> beginning
2022-11-15 22:52:43 +02:00
Hubert Maier 072a3b2958 GRAPHICS: Correct spelling mistake
begining -> beginning
2022-10-27 15:56:06 +02:00
Eugene Sandulenko b697ad6cfa GRAPHICS: MACGUI: Improved debug output 2022-08-22 17:39:47 +02:00
Eugene Sandulenko ba4a260e9e GRAPHICS: MACGUI: Use uint32 for color information 2022-08-20 22:12:29 +02:00
Avijeet a21afb29b1 GRAPHICS: MACGUI: Reduce duplicated code in MacTect::render 2022-08-05 20:17:23 +02:00
Avijeet ff1f5712e3 PINK: Fix reversed hebrew text 2022-08-05 20:17:23 +02:00
Pragyansh Chaturvedi 94848be816 GRAPHICS: Set MacText->_defaultFormatting values after generating font 2022-07-17 13:04:14 +02:00
Avijeet 7beaa38ef6 COMMON: MACGUI: Append string with font in appendText 2022-07-02 22:41:36 +02:00
Pragyansh Chaturvedi (r41k0u) 8409314414 DIRECTOR: LINGO: Implement MacText::enforceFontSlant() and implement kTheTextStyle STUB in TextCastMember::setField() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 334bbd11a3 DIRECTOR: LINGO: Implement MacText::enforceTextFont() and use it to implement STUB kTheTextFont in TextCastMember::setField() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 26779bbd1d DIRECTOR: Revert _ptext change check omission in TextCastMember::setText(), remove unnecessary initialisation of string in MacText::getPlainText() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 0a95714cac DIRECTOR: GRAPHICS: Add getPlainText() function to MacText 2022-06-06 18:32:14 +02:00
Quote58 9d4ac18be5 COMMON: macText::plainByteMode() accounts for Mac Roman. 2022-04-18 16:26:57 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
ysj1173886760 83615f0d86 GRAPHICS: MACGUI: fix text display issue in mactextwindow. 2021-09-06 20:58:53 +08:00
ysj1173886760 69cb4dd7a9 GRAPHICS: MACGUI: fix rendering text. 2021-08-18 21:06:41 +08:00
ysj1173886760 d00c5d1c36 DIRECTOR: fix _interLinear in mactext.
looks like it's the max text height, instead of the height of intervals of line.
2021-08-13 20:27:18 +08:00
ysj1173886760 e5af48a2ac GRAPHICS: MACGUI: fix getRowCol.
deal with out of bound error.
2021-08-12 17:03:09 +08:00