Commit Graph

35 Commits

Author SHA1 Message Date
Stefan Seyfried
8b4c30e093 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)


Origin commit data
------------------
Commit: e490f84ea8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)
2017-02-07 17:23:42 +01:00
Michael Liebmann
de73bdf3d4 fontrenderer: Rework rendering for better font presentation
- For the correct use of the changes should be built freetype
 with the following settings:
 #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
 #define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING


Origin commit data
------------------
Commit: 97d1d93c93
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-01-24 (Tue, 24 Jan 2017)

Origin message was:
------------------
fontrenderer: Rework rendering for better font presentation

 - For the correct use of the changes should be built freetype
  with the following settings:
   #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
   #define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
2017-01-31 16:36:40 +01:00
Thilo Graf
eb7d16a32a fontrenderer.cpp: Use additional percentage height offset.
Different font types could have different glyph heights,
Therfore static values seems not really senseful.
eg. chars like ÄÁÂÅÈÉÊËÌÍÎÏÑÒÓÕÖÙÛÜÝ could paint over defined height,

Note: 	However, depending of implementations, the font image may change.
	Most likely this must be adapted to some parts.


Origin commit data
------------------
Commit: 3ecb94fc21
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-01 (Sun, 01 Jan 2017)
2017-01-05 22:19:18 +01:00
Jacek Jendrzej
1486711d16 some never read compil warning fixes
Origin commit data
------------------
Commit: 0d9fbd5378
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-24 (Sun, 24 Apr 2016)
2016-04-24 17:18:37 +02:00
Michael Liebmann
8c927dcee4 Fontrenderer: Fix RenderString() for better drawing fonts
Origin commit data
------------------
Commit: 9ab1f62cf0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:07:33 +04:00
vanhofen
3bba3094e2 change getRenderWidth() default to UTF8
Origin commit data
------------------
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)

Origin message was:
------------------
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
martii
3414e8b997 driver/fontrenderer: adding an additional bool to RenderString() seems inappropriate.
Origin commit data
------------------
Commit: 2047b51780
Author: martii <m4rtii@gmx.de>
Date: 2013-07-24 (Wed, 24 Jul 2013)
2014-06-11 23:06:50 +02:00
martii
4c2c559da3 remove widest_number definition and usage, add Font::getMaxDigitWidth() method instead
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: 15b2b2ec05
Author: martii <m4rtii@gmx.de>
Date: 2013-11-29 (Fri, 29 Nov 2013)
2013-11-29 23:02:50 +01:00
Michael Liebmann
a04661442a Fontrenderer: Fixed error when rendering the font
- Add comment for parameter 'useFullBg'


Origin commit data
------------------
Commit: ce91ca7f13
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-23 (Tue, 23 Jul 2013)
2013-07-23 06:29:47 +02:00
Michael Liebmann
1a3a6e11b4 Fontrenderer: Use real color values for Renderstring()
Origin commit data
------------------
Commit: 20fd26a65d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-13 (Sat, 13 Jul 2013)
2013-07-21 22:01:52 +02:00
Michael Liebmann
f72058e32e CFrameBuffer::waitForIdle: Added a parameter
to identify the execution at Debug Output
- For example: name of the calling function


Origin commit data
------------------
Commit: d460c50bd5
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-17 (Fri, 17 May 2013)

Origin message was:
------------------
* CFrameBuffer::waitForIdle: Added a parameter

 to identify the execution at Debug Output
- For example: name of the calling function
2013-05-18 14:44:20 +01:00
Michael Liebmann
ef1cb49866 Mute icon: Fix minor bugs
- Fix display the mute icon when leaving the audio player
- Disable mute icon in channellist when 'Quickzap in list' active or allow
- Fix hide the mute icon in movie browser, picture viewer,
 file browser and upnp browser
- Font::RenderString(): Use correct value of y for CFrameBuffer::checkFbArea()


Origin commit data
------------------
Commit: 5eb7f4aea8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-17 (Fri, 17 May 2013)

Origin message was:
------------------
* Mute icon: Fix minor bugs

- Fix display the mute icon when leaving the audio player
- Disable mute icon in channellist when 'Quickzap in list' active or allow
- Fix hide the mute icon in movie browser, picture viewer,
 file browser and upnp browser
- Font::RenderString(): Use correct value of y for CFrameBuffer::checkFbArea()
2013-05-18 14:44:20 +01:00
Michael Liebmann
2b64c52a2f Rework handling muteicon
- Integrated for monitoring the mute icon into the frame buffer class.
 If the icon is overwritten by an element, it is restored from the
 framebuffer.

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 1049b337bb
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-13 (Mon, 13 May 2013)

Origin message was:
------------------
* Rework handling muteicon

- Integrated for monitoring the mute icon into the frame buffer class.
 If the icon is overwritten by an element, it is restored from the
 framebuffer.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-05-16 11:01:41 +01:00
Stefan Seyfried
90a2e693bb fontrenderer: fix rendering problems with accelerated blitting
Origin commit data
------------------
Commit: ca9b85b3f5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-09 (Tue, 09 Apr 2013)
2013-04-09 13:12:09 +02:00
Stefan Seyfried
d7704f4dc8 fontrenderer: allow using customcolor.h colors for fonts
Origin commit data
------------------
Commit: 90c252f6f9
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
2013-04-09 13:12:00 +02:00
Stefan Seyfried
ca13423a3e fontrenderer: use background color of framebuffer
Origin commit data
------------------
Commit: e66b57cd88
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
2013-04-09 13:11:53 +02:00
Jacek Jendrzej
9d4b074a55 revert 13e8556e3e && 13e8556e3e
Origin commit data
------------------
Commit: f3dcf52ea0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-08 (Mon, 08 Apr 2013)
2013-04-08 18:03:33 +02:00
Stefan Seyfried
13e8556e3e fontrenderer: allow using customcolor.h colors for fonts
Origin commit data
------------------
Commit: 89251f648e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-07 (Sun, 07 Apr 2013)
2013-04-08 10:36:50 +02:00
Stefan Seyfried
00300dc276 fontrenderer: use background color of framebuffer
Origin commit data
------------------
Commit: 629dc8562f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
2013-04-08 10:34:33 +02:00
Michael Liebmann
bbdefd986b neutrino: GUI Painting of Vol. Mute and Clock (Part1)
- Added getDigitHeight() and getDigitOffset() to fontrenderer (better numerics display)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2151 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 0aeeb601bd
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-03-18 (Sun, 18 Mar 2012)

Origin message was:
------------------
* neutrino: GUI Painting of Vol. Mute and Clock (Part1)

- Added getDigitHeight() and getDigitOffset() to fontrenderer (better numerics display)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2151 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-03-18 18:46:36 +00:00
[CST] Focus
12336ef92e Experimental option for non-transparent fonts, to make them readable with high transparency levels. Looking a bit ugly, must be improved
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1858 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 0b32b39bdf
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-11-17 (Thu, 17 Nov 2011)
2011-11-17 10:53:53 +00:00
Stefan Seyfried
553f05e714 fontrenderer: bring RenderString() and getRenderWidth() in line
both functions had slightly different ideas on how wide a string
would render, leading to occational off-by-ones and eventually
stripped characters

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1264 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: f0d56fe6e7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-03-06 (Sun, 06 Mar 2011)
2011-03-06 18:08:23 +00:00
Stefan Seyfried
2a28fe317c fontrenderer: remove '\n' handling
'\n' in a text was not working correctly - it did not reset the
X position correctly and it did jump out of the assigned box.
Visible errors were e.g. on epgplus, 13.0E SF1, where the short
description often contains '\n' and thus garbage was painted
below the epgplus window (and did not get cleared afterwards).
For now we replace '\n' with '¶' (0x00b6). Later, if no offenders
are found, it should simply be removed.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@872 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: b666fab10b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-10-31 (Sun, 31 Oct 2010)
2010-10-31 10:04:39 +00:00
[CST] Focus
9a9368b090 Windows fade emulation. Some main windows at the moment only. New drivers needed.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@644 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 253324226e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-06-27 (Sun, 27 Jun 2010)
2010-06-27 13:06:12 +00:00
Jacek Jendrzej
d6311277e2 add: getWidth()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@255 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: f548d2e3c0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-02-04 (Thu, 04 Feb 2010)

Origin message was:
------------------
-add: getWidth()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@255 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-04 11:45:37 +00:00
Stefan Seyfried
0c3b142a65 fontrenderer: do not paint background color
do not paint the background color, making the font "transparent"
this works around display problems in e.g. streaminfo, because the
"wrong" background color is used

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@224 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 6b4f0ad178
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-01-30 (Sat, 30 Jan 2010)
2010-01-30 14:09:10 +00:00
Jacek Jendrzej
7b1371dc28 #ifndef
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@206 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 45f9fc1e75
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-01-24 (Sun, 24 Jan 2010)
2010-01-24 08:57:44 +00:00
Jacek Jendrzej
72ab98e317 fix segfault
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@205 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: ceb4bdf7f9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-01-24 (Sun, 24 Jan 2010)
2010-01-24 08:50:37 +00:00
Stefan Seyfried
159c399735 neutrino: speed up the fontrenderer
Speed up the fontrenderer by *not* using the GXA accelerator. To
prevent artifacts, add a routine to framebuffer class to sync on
the GXA engine being ready with drawing.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@196 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 230a966e7d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-01-20 (Wed, 20 Jan 2010)
2010-01-20 19:21:35 +00:00
mws
75bb567b43 fix initializers and shadows
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@123 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 00353cf75d
Author: mws <mws@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-29 (Tue, 29 Dec 2009)
2009-12-29 13:24:33 +00:00
Stefan Seyfried
e8d8a7cc18 fontrenderer.cpp: stuff allocated with strdup must be free()'d, not deleted
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@107 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: c77b7f37c8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-22 (Tue, 22 Dec 2009)
2009-12-22 12:15:01 +00:00
Stefan Seyfried
38644a8f3f fix more "type qualifiers ignored on function return type" warnings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@105 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 732ffb18be
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-21 (Mon, 21 Dec 2009)
2009-12-21 17:26:15 +00:00
mws
c62aa94983 Mark unused vars as comment
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@104 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 1b13da2617
Author: mws <mws@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-21 (Mon, 21 Dec 2009)
2009-12-21 16:23:09 +00:00
Stefan Seyfried
2b4089bf5a fontrenderer: improve freetype error handling
* freetype errors are != 0, not < 0, fix that to avoid segfaults in
 case of invalid fonts
* unlock the render mutex in case of an error

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@42 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 5345573e5e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-13 (Sun, 13 Dec 2009)

Origin message was:
------------------
fontrenderer: improve freetype error handling

* freetype errors are != 0, not < 0, fix that to avoid segfaults in
 case of invalid fonts
* unlock the render mutex in case of an error

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@42 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-13 12:25:33 +00:00
mrcolor
cb8dd3394d our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
2009-12-08 11:05:11 +00:00