Commit Graph

15 Commits

Author SHA1 Message Date
svenhoefer
c159fec182 - neutrinofonts: remove wrong name from signal_font struct 2016-08-15 22:15:15 +02:00
Jacek Jendrzej
4ec5589c54 src/driver/neutrinofonts.cpp add cache for dynSize 2016-05-04 16:05:17 +02:00
M. Liebmann
56d76f4ebc CNeutrinoFonts: Add 'getDynFontExt()' for create custom fonts...
...in external plugins
2015-11-27 12:31:47 +01:00
Thilo Graf
b9e04a4999 CNeutrinoFonts: use neutrino debug output as default with line numbers 2015-03-29 22:40:14 +02:00
Jacek Jendrzej
2b5e7b5ba3 use empty to check string 2015-01-09 17:15:11 +01:00
svenhoefer
608ae65038 - neutrinofonts.cpp: use debug output for font init 2014-09-08 18:42:28 +02:00
svenhoefer
8b91cda918 - change getRenderWidth() default to UTF8 2014-06-11 23:07:00 +02:00
martii
cbc9299df8 convert most char[...] configuration values to std::string
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
2013-12-25 12:08:14 +01:00
Thilo Graf
b5483d4050 CNeutrinoFonts: performance fix
Variable '_height' is reassigned a value before the old one has been used.
2013-10-16 11:54:05 +02:00
Thilo Graf
5e666dcdd5 CNeutrinoFonts: disable debug spam 2013-08-30 22:14:35 +02:00
Michael Liebmann
e473df6a43 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)
2013-07-26 14:52:37 +02:00
Michael Liebmann
a1fe4298c3 CNeutrinoFonts: Fix segfault, when font size changed 2013-07-21 22:06:44 +02:00
Michael Liebmann
aca97e210e CNeutrinoFonts: Fix segfault, when fontfile changed
- use std::string for font and style names
2013-07-21 22:06:40 +02:00
Michael Liebmann
0bcb7bcfae 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(...)
2013-07-21 22:05:18 +02:00
Michael Liebmann
465d2aba23 Add new class CNeutrinoFonts for setup and modify neutrino fonts
- move SetupFonts() from CNeutrinoApp to CFontSetup
2013-07-21 22:05:14 +02:00