Commit Graph

122 Commits

Author SHA1 Message Date
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
krzys-h ced5af9314 (UWP) Don't try to access C:\Windows\Fonts
It's going to fail anyway
2019-01-06 15:46:03 +01:00
orbea d40da6aca3 Fix c89 'keyword is hidden by macro definition' with clang. 2018-12-16 08:01:03 -08:00
twinaphex 0d39701145 Get rid of double void argument 2018-07-14 00:54:14 +02:00
twinaphex 600c2c1ca1 Simplify menu_display_font 2018-07-14 00:39:46 +02:00
twinaphex 4758caea74 Commenting this out for now - this causes crashes with
toggling fullscreen in threaded video mode with the GL driver
2018-07-14 00:21:27 +02:00
Rob Loach e4fe33f437
freetype: Add comment about assets:// 2018-06-24 12:02:28 -04:00
Rob Loach 8a96062ed0
freetype: Rename to osd-font.tff 2018-06-24 11:19:40 -04:00
Rob Loach da6b7987f1
freetype: Get DejaVuSansMono.ttf from the assets directory 2018-06-24 11:00:21 -04:00
twinaphex c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker 12ae59a197 freetype: better way to determine max_width/height, fixes buffer overflow with alternate OSD fonts 2017-07-22 22:21:26 -04:00
twinaphex 43c42c28e6 Cleanup font_renderer_create_atlas 2017-07-22 18:46:33 +01:00
aliaspider db490a69a3 (WiiU) add a menu display driver. enable MATERIALUI and XMB. 2017-05-22 01:45:40 +01:00
aliaspider b17e76d8b7 (WiiU) add freetype and stb font support.
freetype disabled by default due to requiring an external library.
2017-05-21 04:22:32 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
Jean-André Santoni b700a4e77b (CoreText) Fix loading fonts from a path 2017-02-20 23:11:40 +01:00