Commit Graph

26 Commits

Author SHA1 Message Date
svenhoefer
8329304a48 - neutrinofonts: introduce fixed (non user scalable) fonts
Signed-off-by: Thilo Graf <dbt@novatux.de>
2019-03-09 17:10:49 +01:00
svenhoefer
c0b433c83d - yaft: allow new shell.ttf in yaft-widget too
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-01-30 09:24:49 +01:00
svenhoefer
088cd23c68 - neutrinofonts: add a bit debug output to new SetupShellFont() function
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-01-27 16:16:03 +01:00
svenhoefer
97d349872a - neutrinofonts: allow monospaced font for shellwindow widget
Font is initialized at runtime and uses FONTDIR_VAR "/shell.ttf" or FONTDIR "/shell.ttf"

Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-01-27 16:16:00 +01:00
Thilo Graf
71d0c42a47 FBFontRenderClass/CNeutrinoFonts: ensure reset of some instances
Only for safety.
2017-06-15 01:01:54 +02:00
M. Liebmann
be49686432 Merge branch 'master' into pu/fb-setmode 2017-03-20 00:00:35 +01:00
Thilo Graf
96e05c69dc CNeutrinoFonts: reduce debug spam
In some cases with many following  dynamic size changes,
it could be better to suppress this output.
2017-03-19 22:32:15 +01:00
svenhoefer
43dbfed1ba - move ENABLE_CHANGE_OSD_RESOLUTION to scale2Res() function 2017-02-19 23:31:46 +01:00
svenhoefer
e631c3e3c0 - framebuffer: rename scaleFont() to scale2Res() 2017-02-19 23:22:12 +01:00
M. Liebmann
13a7358e64 neutrino: Upscaling fonts, infoclock and volumebar for full hd 2017-02-13 12:51:14 +01:00
svenhoefer
aeec37af89 - rename screen_x/yres to font_scaling_x/y 2017-02-09 18:13:19 +01:00
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