Commit Graph

7 Commits

Author SHA1 Message Date
Michael Liebmann
c30e9427c6 CComponentsFrmClock: Rework font handling
- Use setClockFont(enum FONT_TYPES) for selection of neutrino fonts
- Use setClockFontSize(size) for Dynamic Font


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1bfb6d2cd3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)



------------------
This commit was generated by Migit
2013-11-28 16:07:48 +01:00
Thilo Graf
0ac1d53f2a CNeutrinoFonts: add explicit include for SNeutrinoSettings
required in typedef struct font_sizes_groups for *const content


Origin commit data
------------------
Branch: ni/coolstream
Commit: 37cb024412
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-10 (Thu, 10 Oct 2013)



------------------
This commit was generated by Migit
2013-10-16 11:54:04 +02:00
Michael Liebmann
4f0d411e1c CNeutrinoFonts: Use separate font renderer for dynamic fonts
- delete / initialize font renderer only if necessary
 (e.g. start program, change the font file, change the scaling)


Origin commit data
------------------
Branch: ni/coolstream
Commit: e473df6a43
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-26 (Fri, 26 Jul 2013)

Origin message was:
------------------
CNeutrinoFonts: Use separate font renderer for dynamic fonts

- delete / initialize font renderer only if necessary
 (e.g. start program, change the font file, change the scaling)


------------------
This commit was generated by Migit
2013-07-26 14:52:37 +02:00
Michael Liebmann
497312d01b CNeutrinoFonts: Fix segfault, when fontfile changed
- use std::string for font and style names


Origin commit data
------------------
Branch: ni/coolstream
Commit: aca97e210e
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-07-03 (Wed, 03 Jul 2013)



------------------
This commit was generated by Migit
2013-07-21 22:06:40 +02:00
Michael Liebmann
0efd71bc5a Use dynamic font in CVolumeBar
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5267667cfb
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-28 (Fri, 28 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-07-21 22:06:00 +02:00
Michael Liebmann
365badceee Add dynamic fonts to CNeutrinoFonts
- Dynamic fonts with their size matched to a given text box.
 The display size is retained even when changing the font size factor.
- "Normal" dynamic fonts, characterized by FONT_ID_SHARE in
 CNeutrinoFonts::getDynFont() can be used by several objects
 simultaneously. That is, if the calculated font size and font style
 are the same, the existing font is used.
- Dynamic font for exclusive application will only be used by an object.
 For this, a FontID (FONT_ID_xxx, defined in src/driver/neutrinofonts.h)
 in CNeutrinoFonts::getDynFont() is specified.
- Objects with dynamic font for exclusive application can resize at
 run time, the font size will be adjusted accordingly.
- The return value of CNeutrinoFonts::getDynFont() is a pointer
 to a font, for example:
 Font** font = CNeutrinoFonts::getInstance()->getDynFont(...);
 (*font)->RenderString(...)


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0bcb7bcfae
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-28 (Fri, 28 Jun 2013)

Origin message was:
------------------
Add dynamic fonts to CNeutrinoFonts

- Dynamic fonts with their size matched to a given text box.
 The display size is retained even when changing the font size factor.
- "Normal" dynamic fonts, characterized by FONT_ID_SHARE in
 CNeutrinoFonts::getDynFont() can be used by several objects
 simultaneously. That is, if the calculated font size and font style
 are the same, the existing font is used.
- Dynamic font for exclusive application will only be used by an object.
 For this, a FontID (FONT_ID_xxx, defined in src/driver/neutrinofonts.h)
 in CNeutrinoFonts::getDynFont() is specified.
- Objects with dynamic font for exclusive application can resize at
 run time, the font size will be adjusted accordingly.
- The return value of CNeutrinoFonts::getDynFont() is a pointer
 to a font, for example:
 Font** font = CNeutrinoFonts::getInstance()->getDynFont(...);
 (*font)->RenderString(...)


------------------
This commit was generated by Migit
2013-07-21 22:05:18 +02:00
Michael Liebmann
c82257306f Add new class CNeutrinoFonts for setup and modify neutrino fonts
- move SetupFonts() from CNeutrinoApp to CFontSetup


Origin commit data
------------------
Branch: ni/coolstream
Commit: 465d2aba23
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-06-27 (Thu, 27 Jun 2013)



------------------
This commit was generated by Migit
2013-07-21 22:05:14 +02:00