Commit Graph

138 Commits

Author SHA1 Message Date
libretroadmin a4212061d4 Cleanup some unused variables 2024-04-06 20:12:15 +02:00
libretroadmin ae3ac72356 Cleanups for font drivers 2023-06-15 12:37:09 +02:00
libretroadmin 246cceeb27 Silence more signedness warnings 2023-06-14 19:51:31 +02:00
libretroadmin eb509b8d8e get_line_metrics always implemented for font rendering backend, take
out code parts for hypotheticla font rendering backends that don't implement
it
2023-06-03 18:34:47 +02:00
libretroadmin b872de4fb1 (PSL1GHT) Fix some warnings 2023-02-20 14:50:54 +01:00
libretroadmin 01c3684b10 Cleanups - try to remove stdio.h include where possible 2023-01-21 22:25:38 +01:00
libretroadmin e24d62715e (font_renderer) Cleanups 2022-11-15 16:03:01 +01:00
Michael Burgardt b89692c532
Add Hungarian language option (#14585) 2022-11-04 19:52:39 +01:00
LibretroAdmin 003cea5d42 Fix some 'implicit conversion loses precision' warnings 2022-09-01 15:15:48 +02:00
LibretroAdmin b2634ea588 * Create fill_pathname_join_special - and specify fill_pathname_join
as deprecated.
* Use fill_pathname_join_special in the vast majority of cases where
we can ensure out_path is a new empty string
* Get rid of some extension concatenation with strlcat where encountered
* Some general cleanups with NULL termination of strings that get immediately
passed to strlcpy/strlcpy-adjacent functions
2022-08-04 14:19:38 +02:00
libretroadmin f990fa86fa (Freetype) Prevent potential free issue on WiiU - play it safe for
now until further clarified what is going on
2022-07-15 19:28:21 +02:00
libretroadmin 5e13851a7a (Freetype) Fix severe memory leaks that happened after using FT_New_Memory_Face -
according to documentation note - 'You must not deallocate memory before calling
FT_Done_Face' - so store a pointer to the font data and then free it after calling
FT_Done_Face
2022-07-15 18:57:02 +02:00
libretroadmin 37bb66ef6e (Freetype) Fix warnings 'local variable hides a parameter of the same name' 2022-07-12 22:37:17 +02:00
libretroadmin 128753c81d (Freetype) Use FT_New_Memory_Face instead of FT_New_Face to load
font from memory - first read it from file to memory beforehand -
this solves an asset extraction issue when selecting 'Update Assets' -
apparently FT_New_Face keeps an open file handle to the font file which
prevents it from being overwritten/deleted while the program is still
running.
TODO/FIXME - move file loading code out of the font renderer init function
and move it higher level
2022-06-26 20:38:46 +02:00
libretroadmin cf12a5e7e7 (Font drivers) Uniformity in naming conventions 2022-06-26 18:01:43 +02:00
OsirizX c6d51fdb32 [ORBIS] Initial changes for PS4 2022-05-21 16:31:10 +02:00
DisasterMo 2f88edb93f Add 6x10 font compatibility
This adds compatibility with 6x10 fonts. The hope is to be able to add more fonts to RGUI, like Latin Supplement Extended and others, in the future.
2022-03-22 18:14:46 +01:00
twinaphex 460f5e745d Silence some MSVC 2019 code analysis warnings 2022-03-05 14:39:56 +01:00
jdgleaver 3e4201ed30
Bitmap font improvements (#13693) 2022-03-02 16:47:46 +01:00
jdgleaver fc05c0805b (freetype/stb_unicode/bitmapfont) Prevent texture bleed when rendering text at non-integer scales 2021-04-15 17:24:32 +01:00
twinaphex 8f79e14d0a Silence LGTM static code analysis warnings 2021-03-24 00:25:47 +01:00
twinaphex 4c97c22e00 (Win32) Exclude HAVE_FONTCONFIG codepath for Windows for now 2021-02-03 11:29:41 +01:00
twinaphex c40943374b Fix C89_BUILD 2021-02-03 10:11:33 +01:00
liushuyu 6b044e742b
(FontRenderer/FreeType): use C-style block comments 2021-01-30 20:05:15 -07:00
liushuyu 8132303d4f
(FontRenderer/FreeType) Use fontconfig to select fonts if available 2021-01-30 18:49:47 -07:00
jdgleaver 3a6558c2f1 (RGUI) Add Russian language support 2021-01-13 10:00:51 +00:00
twinaphex 07db1bbfde Cut down on code duplication 2021-01-08 23:20:34 +01:00
jdgleaver 74fff8dc62 (RGUI) Add support for CJK punctuation glyphs 2020-12-13 12:34:53 +00:00
jdgleaver 0f0ccbadc0 (RGUI) Add support for CJK fonts 2020-12-10 15:17:26 +00:00
twinaphex c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex f09df7c6e3 Reorder structs, alignment 2020-08-15 19:43:17 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
jdgleaver 73bcd7a692 Enable correct vertical alignment of text (+ font rendering fixes) 2020-03-31 16:55:22 +01:00
twinaphex d918c1791a Get rid of some configuration.h dependencies 2020-02-12 16:09:30 +01:00
Guo Yunhe 95dede9039
Fix comment in freetype.c 2019-11-15 10:18:05 +02:00
Twinaphex 724865a8fc
Update freetype.c 2019-11-15 00:53:17 +01:00
Guo Yunhe 52b3a4fe17 Correct Droid Sans Fallback font path 2019-11-14 18:01:46 +02:00
twinaphex 86410cc3b0 (CoreText) Buildfix 2019-08-24 16:57:23 +02:00
twinaphex 02dccb0396 (OSX) Buildfix for C89_BUILD 2019-08-24 08:51:33 +02:00
twinaphex b9d7be372f (CoreText) Check first if path is valid 2019-08-24 03:35:23 +02:00
Twinaphex 714e3ddc2a (SBT font driver) Check first if font files exist before
we try to open them
2019-08-24 03:30:32 +02:00
twinaphex 0dc73f2c8e Prevent calling FT_New_Face if path is not valid 2019-08-24 03:25:46 +02:00
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
twinaphex 8784d21c74 (STB) WinRT/UWP can't deal with relative paths, so don't look for
osd-font.ttf
2019-04-28 07:24:34 +02:00
twinaphex 2c47d571aa Use path_is_valid instead of filestream_exists when we only
need to know if a file exists on the filesystem
2019-04-27 14:01:50 +02:00
Huw Pascoe fed06044c4 silence warnings 2019-04-12 17:32:11 +01:00
jdgleaver 136762f6a2 Fix text display issues when using Japanese (and other unicode-dependent language) text with stb_unicode 2019-04-09 15:51:33 +01:00
jdgleaver 38d2febba5 Fix text alignment when using stb_unicode 2019-04-08 17:37:23 +01:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00