issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
262k
⌀
issue_title
stringlengths
1
1.02k
issue_comments_url
stringlengths
53
116
issue_comments_count
int64
0
2.49k
issue_created_at
stringdate
1999-03-17 02:06:42
2025-06-23 11:41:49
issue_updated_at
stringdate
2000-02-10 06:43:57
2025-06-23 11:43:00
issue_html_url
stringlengths
34
97
issue_github_id
int64
132
3.17B
issue_number
int64
1
215k
[ "libsdl-org", "SDL_ttf" ]
Pulling the latest revision, and building the Xcode project results in a framework that doesn't have SDL_gpu_textengine.c in it - it's missing from the "Library Source" folder in the Xcode project file. I'd make a PR but I think my Xcode is different from the one you're using, and there's a whole slew of extra project...
The Xcode project doesn't contain SDL_gpu_textengine.c
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/463/comments
1
2025-01-20T05:44:33Z
2025-01-20T16:48:36Z
https://github.com/libsdl-org/SDL_ttf/issues/463
2,798,245,616
463
[ "libsdl-org", "SDL_ttf" ]
I'm getting a segfault when doing these steps: 1. Run `showfont` with any font file. 2. Change any one of these properties at least once: - Bold (b) - Italic (i) - Size (up or down) 3. Stop the program by closing the window or pressing escape. The segfault happens here: https://github.com/libsdl-o...
Segfault when closing `showfont`
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/459/comments
1
2025-01-04T00:34:58Z
2025-01-04T15:09:15Z
https://github.com/libsdl-org/SDL_ttf/issues/459
2,768,326,207
459
[ "libsdl-org", "SDL_ttf" ]
The full dependency list is: ``` SDL2.dll GDI32.dll KERNEL32.dll msvcrt.dll RPCRT4.dll USER32.dll USP10.dll libgcc_s_dw2-1.dll ``` I'm guessing this is C++ runtime? I'll copy over the VC binaries for the release, but we should fix this so it doesn't bite us in the future.
SDL2 mingw release archives have a libgcc dependency
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/457/comments
32
2025-01-01T21:15:55Z
2025-01-03T15:07:36Z
https://github.com/libsdl-org/SDL_ttf/issues/457
2,765,262,820
457
[ "libsdl-org", "SDL_ttf" ]
Hello, Right now, when building from source on Windows using CMake with the MSVC toolchain, the CMake script cannot find SDL. It errors in the `find_package` statement in `SDL_ttf`'s CMake script. Since SDL3 is a submodule of SDL, it would be greate to have the option to build the SDL3 submodle and use that on CMa...
Add the ability to build from source without an existing vendored SDL.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/456/comments
6
2025-01-01T20:53:18Z
2025-01-02T00:34:12Z
https://github.com/libsdl-org/SDL_ttf/issues/456
2,765,255,226
456
[ "libsdl-org", "SDL_ttf" ]
We have one test-versioning.sh at top level, and one under build-scripts directory. The latter was added by @madebr with commit 008664ca, and it misses Makefile.os2 and VisualC/Version.rc: the two copies don't match, that's possibly because it was based on SDL3 version?? In any case, the one at top level covers e...
[SDL2] two copies of mismatching test-versioning.sh
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/454/comments
1
2025-01-01T18:34:55Z
2025-01-01T19:14:32Z
https://github.com/libsdl-org/SDL_ttf/issues/454
2,765,204,196
454
[ "libsdl-org", "SDL_ttf" ]
Few issues with the GPUTextEngine example on MacOS (ARM) https://github.com/user-attachments/assets/c2e0fb16-a310-4c4e-8180-8ee1a1b837e0 **1) Glyph atlas doesn't account for DPI scaling, leading to blurry text due to upsampling** It would be great to be able to pass DPI scaling into `CreateGPUTextEngine`, and ha...
MacOS dpi scaling & filtering issues with GPUTextEngine
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/452/comments
5
2024-12-30T06:39:17Z
2025-01-05T04:04:32Z
https://github.com/libsdl-org/SDL_ttf/issues/452
2,762,732,945
452
[ "libsdl-org", "SDL_ttf" ]
If (*cough*) you happen to call TTF_CreateText(...) with a NULL font, the TTF_Text object is happily returned without any reported issues, and then if you happen to (*cough*) call TTF_GetTextSubString(..) the application will crash in ``` if (text->internal->num_clusters == 0) { substring->rect.h = te...
TTF_GetTextSubString can crash confusingly...
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/446/comments
3
2024-12-28T00:51:44Z
2024-12-28T01:53:39Z
https://github.com/libsdl-org/SDL_ttf/issues/446
2,761,375,740
446
[ "libsdl-org", "SDL_ttf" ]
When calling _TTF_RenderGlyph_Solid_ passing _0 (zero)_ as the codepoint to render the problem occurs, deep in the call stack at _TTF_Size_Internal_. ``` // Call stack TTF_RenderGlyph_Solid TTF_RenderText_Solid TTF_Render_Internal TTF_Size_Internal ``` It appers that this problem was introduced on commit [c...
Infinite recursion in TTF_RenderGlyph_Solid on Linux when using TrueType rendering
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/441/comments
0
2024-12-21T16:16:50Z
2024-12-26T21:45:30Z
https://github.com/libsdl-org/SDL_ttf/issues/441
2,754,199,967
441
[ "libsdl-org", "SDL_ttf" ]
Just a note to request slightly different wording around the comment in SDL_ttf.h regarding the 'text' member-variable of the TTF_Text structure. It currently says: ``` char *text; /**< A copy of the text used to create this text object, useful for layout and debugging. This will be freed automatica...
Clarify the comment about the TTF_Text 'text' member var
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/440/comments
7
2024-12-17T23:54:10Z
2024-12-18T04:56:06Z
https://github.com/libsdl-org/SDL_ttf/issues/440
2,746,367,680
440
[ "libsdl-org", "SDL_ttf" ]
I raised this issue on the discourse.libsdl.org forum, but there wasn't much interest in helping me. The example shows that the text loses precision, or perhaps I am not using the correct functions to handle it properly. ```c #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stddef.h> #inc...
Text Flickering on Window Resize in SDL2 && SDL3
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/445/comments
3
2024-12-17T02:24:43Z
2025-01-02T17:27:19Z
https://github.com/libsdl-org/SDL_ttf/issues/445
2,756,645,605
445
[ "libsdl-org", "SDL_ttf" ]
https://github.com/libsdl-org/SDL_ttf/blob/0ad0c2518be948300ed1e133741932f1ba2a4e7b/examples/testgputext.c#L210 That second to last parameter should be the vertex offset (which you calculate by tallying `seq->num_vertices` as you go). As per https://github.com/libsdl-org/SDL_ttf/blob/0ad0c2518be948300ed1e1337...
`testgputext` doesn't correctly apply vertex offset
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/439/comments
2
2024-12-16T09:38:04Z
2024-12-24T01:27:46Z
https://github.com/libsdl-org/SDL_ttf/issues/439
2,741,847,709
439
[ "libsdl-org", "SDL_ttf" ]
```c float *xy; /**< Vertex positions */ int xy_stride; /**< Byte size to move from one element to the next element */ ... sequence->xy_stride = sizeof(float) * 2; sequence->uv_stride = sizeof(float) * 2; ... const float *xy = (float *)((Uint8 *)seque...
`TTF_GPUAtlasDrawSequence.xy/uv` un-ergonomic stride behaviour
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/438/comments
8
2024-12-16T09:29:13Z
2024-12-24T01:25:57Z
https://github.com/libsdl-org/SDL_ttf/issues/438
2,741,827,044
438
[ "libsdl-org", "SDL_ttf" ]
https://github.com/libsdl-org/SDL_ttf/blob/0ad0c2518be948300ed1e133741932f1ba2a4e7b/src/SDL_gpu_textengine.c#L667 The default order that SDL_ttf outputs is opposite to the rest of my pipeline, so i have to do a post-processing step over the returned indices for it to render correctly, which is quite wasteful, it wou...
[Feature Request] Allow specifying the winding order of GPU indices
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/437/comments
5
2024-12-16T09:12:40Z
2024-12-24T02:26:11Z
https://github.com/libsdl-org/SDL_ttf/issues/437
2,741,789,650
437
[ "libsdl-org", "SDL_ttf" ]
This project is a single C file and header, and is trivial to build if you just copy it in your own project. Is there any chance it will become something else in the future? I know this is a hard question, but maybe if people don't think there are newer complex features the situation should be stable. The reas...
Will SDL_ttf be a single pair c file and header forever?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/436/comments
1
2024-12-13T01:03:16Z
2024-12-13T01:09:32Z
https://github.com/libsdl-org/SDL_ttf/issues/436
2,737,160,585
436
[ "libsdl-org", "SDL_ttf" ]
Hello I'm a pygame-ce contributor, since we use SDL_ttf as our font rendering backend I've noticed (and hope that I'm not missing something) that there's no way to change the spacing bewteen lines in a multiline text scenario. I've seen that `TTF_FontLineSkip` returns the recommended spacing between lines of text for ...
Line spacing question
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/435/comments
3
2024-12-11T16:31:08Z
2025-01-02T17:17:40Z
https://github.com/libsdl-org/SDL_ttf/issues/435
2,733,439,219
435
[ "libsdl-org", "SDL_ttf" ]
The current problem is that when I try to build SDL3_ttf with the vendored libraries (FreeType and HarfBuzz), it simply creates a bunch of windows PowerShell processes that do nothing. I used `cmake .. -G "MinGW Makefiles" -DSDLTTF_VENDORED=ON` to configure it and `make` to build it. As I write this, it is taking up...
I cannot build sdl_ttf on windows
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/432/comments
4
2024-11-22T04:31:10Z
2024-11-22T19:51:29Z
https://github.com/libsdl-org/SDL_ttf/issues/432
2,681,716,885
432
[ "libsdl-org", "SDL_ttf" ]
There are two problems, one, SDL3_ttf doesn't wrap on newline characters, while SDL2_ttf does, two, on Windows, there's a font conversion error and the GDB backtrace told me to report this as a bug The function is called via a wrapper ``` SDL_Surface* rendertext(TTF_Font* font, char* text, SDL_Color color) { ...
Issues with SDL_RenderText_Solid_Wrapped only with SDL3
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/431/comments
5
2024-11-21T10:26:10Z
2024-12-19T01:06:37Z
https://github.com/libsdl-org/SDL_ttf/issues/431
2,678,911,702
431
[ "libsdl-org", "SDL_ttf" ]
Hello, i am really grateful for the work you are putting into SDL3_ttf, i was trying SDL3_ttf, i downloaded freetype from the linked tag, and compiled with it with SDL3_ttf (so no harfbaz), and i noticed `TTF_MeasureString` was returning 1 more character than could fit, an example below I am using latest version, so...
TTF_MeasureString returns 1 more character than what can fit without harfbaz
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/429/comments
1
2024-11-01T22:58:02Z
2024-12-07T16:26:00Z
https://github.com/libsdl-org/SDL_ttf/issues/429
2,629,993,826
429
[ "libsdl-org", "SDL_ttf" ]
Hi! I encountered an issue while trying to compile `SDL_ttf` with SDL3 as a submodule in my project. Below is a detailed description of the problem and the solution that allowed me to proceed with the compilation. #### Steps to Reproduce: 1. I set up SDL3 as a submodule in my project and built it in the `SDL/build...
Problem detecting SDL3 during SDL_ttf compilation
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/428/comments
3
2024-10-29T21:43:50Z
2024-10-30T00:46:07Z
https://github.com/libsdl-org/SDL_ttf/issues/428
2,622,387,718
428
[ "libsdl-org", "SDL_ttf" ]
https://github.com/libsdl-org/SDL_ttf/releases/tag/release-2.22.0 No Docs folder, [API call list html](https://wiki.libsdl.org/SDL2_ttf/CategoryAPI) should be included in installers, i know its in another [repo](https://github.com/libsdl-org/sdlwiki) and having another repo makes sense from a web developer POV, b...
there is No Docs, No install guide...
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/427/comments
5
2024-10-29T20:53:06Z
2025-01-28T01:07:19Z
https://github.com/libsdl-org/SDL_ttf/issues/427
2,622,306,634
427
[ "libsdl-org", "SDL_ttf" ]
Hi, Could anyone guide me... against which [SDL3](https://github.com/libsdl-org/SDL) version does this library compile? I tried [v3.1.3 pre-release](https://github.com/libsdl-org/SDL/releases/tag/preview-3.1.3) (is the only v3 release available on the Github page), it compiles and renders `libSDL3.so.0.1.3`, `cmake...
Compatible SDL3 (sub)version?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/426/comments
5
2024-10-26T12:27:38Z
2024-10-26T16:56:00Z
https://github.com/libsdl-org/SDL_ttf/issues/426
2,615,831,442
426
[ "libsdl-org", "SDL_ttf" ]
I'm having an issue with this and I've isolated it to a simple project with a main like so ``` #include <SDL3/SDL.h> #include <SDL3_ttf/SDL_ttf.h> int main(int argc, char *argv[]) { int sdlVer = SDL_GetVersion(); SDL_Window *window = 0; SDL_Renderer *renderer = 0; SDL_CreateWindowAndRenderer("Test"...
Memory leak when using TTF_CreateText
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/425/comments
4
2024-10-25T22:35:54Z
2024-12-07T16:00:27Z
https://github.com/libsdl-org/SDL_ttf/issues/425
2,615,275,986
425
[ "libsdl-org", "SDL_ttf" ]
I've been migrating the codebase of a pixel game to SDL3 and when it came to SDL3_TTF, I noticed that the Solid functions were gone, and any rendering done with Shaded or Blended really doesn't look good. I've been told by @slouken to file an issue to get them added back. Also for those that weren't in the Discord ...
Reimplement Solid text rendering functions.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/423/comments
1
2024-10-23T15:55:52Z
2024-10-24T16:15:33Z
https://github.com/libsdl-org/SDL_ttf/issues/423
2,609,104,538
423
[ "libsdl-org", "SDL_ttf" ]
`TTF_SetFontOutline` always produces rounded outlines, which looks great for most fonts, but not for pixel art fonts. Here is an example: ![image](https://github.com/user-attachments/assets/ab7064bb-e35a-4d04-8534-c1dde6af41c5) It would be great to support non rounded outlines too, configurable with a flag, to get ...
API: Support non-rounded outlines in TTF_SetFontOutline
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/422/comments
9
2024-10-21T21:40:45Z
2024-12-08T10:48:03Z
https://github.com/libsdl-org/SDL_ttf/issues/422
2,603,722,205
422
[ "libsdl-org", "SDL_ttf" ]
I haven't find a reliable way to reproduce this yet, but basically, text sometimes becomes distorted when there are multiple text objects drawn to the same window using the same text engine. With `SDL_RENDER_DRIVER` set to `gpu`, the text in the editor is clear but the text in the grid items has some seemingly rando...
Bug: Text drawn with a renderer text engine sometimes becomes distorted
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/419/comments
9
2024-10-20T21:59:38Z
2024-10-21T00:37:18Z
https://github.com/libsdl-org/SDL_ttf/issues/419
2,600,910,771
419
[ "libsdl-org", "SDL_ttf" ]
Some Smalltalk code to reproduce, using only direct API calls so should be easy to translate: ```smalltalk | sdl ttf window renderer textEngine font text | "setup" sdl := SDL3Library default. sdl init_flags: SDL_INIT_VIDEO. ttf := SDL3TTFLibrary default. ttf init. window := sdl createWindow_title: 'zero wra...
Bug: `TTF_DrawRendererText` hangs when drawing text created with wrap length set to 0
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/418/comments
14
2024-10-20T20:56:23Z
2024-10-21T10:02:32Z
https://github.com/libsdl-org/SDL_ttf/issues/418
2,600,868,554
418
[ "libsdl-org", "SDL_ttf" ]
As far as I can tell, we can only render unicode either [codepoint by codepoint](https://wiki.libsdl.org/SDL2_ttf/TTF_RenderGlyph32_LCD), or an [entire string in one go](https://wiki.libsdl.org/SDL2_ttf/TTF_RenderUTF8_LCD). However, internally the library must be maintaining [a list of clusters](https://github.com/libs...
Rendering cluster by cluster
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/415/comments
5
2024-10-19T15:20:25Z
2024-10-19T17:35:16Z
https://github.com/libsdl-org/SDL_ttf/issues/415
2,599,288,728
415
[ "libsdl-org", "SDL_ttf" ]
This seems to be an issue with how whitespace is trimmed at the end of input. To reproduce, run the showfont demo with `./showfont -textengine renderer font.ttf`, move the cursor to the end of the input inside the edit box, and then press space. Instead of advancing the cursor, the cursor remains in the same positio...
TTF_GetTextSubString returns wrong rectangle when offset is trailing whitespace
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/414/comments
3
2024-10-19T01:51:22Z
2024-10-20T05:27:46Z
https://github.com/libsdl-org/SDL_ttf/issues/414
2,598,650,952
414
[ "libsdl-org", "SDL_ttf" ]
Hello. I'm trying to build TTF with SDL3 and CMake and getting these errors. My CMakeLists ``` ExternalProject_Add(SDL3 PREFIX "${CMAKE_BINARY_DIR}/external" GIT_REPOSITORY "https://github.com/libsdl-org/SDL" GIT_TAG "6771a6020da5052e22930c36cb1070a4c048ba3c" CMAKE_ARGS -DCMAKE_INST...
Bug: Error building with CMake and SDL3
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/413/comments
3
2024-10-18T08:01:47Z
2024-10-26T08:25:06Z
https://github.com/libsdl-org/SDL_ttf/issues/413
2,596,774,491
413
[ "libsdl-org", "SDL_ttf" ]
When building on ARM64 debian, if I install ```sh sudo apt-get install libfreetype-dev libfreetype6 libfreetype6-dev ``` I can validate the installation with the following: ``` pkg-config --cflags freetype2 -I/usr/include/freetype2 -I/usr/include/libpng16 ``` But when I try to run cmake, I get the foll...
Issues finding freetype.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/410/comments
5
2024-10-16T00:37:54Z
2024-10-16T20:35:37Z
https://github.com/libsdl-org/SDL_ttf/issues/410
2,590,255,789
410
[ "libsdl-org", "SDL_ttf" ]
[SDL_hashtable.c](https://github.com/libsdl-org/SDL_ttf/blob/main/src/SDL_hashtable.c) does not compile in Visual Studio 2022 Same issue addressed in https://github.com/libsdl-org/SDL/commit/ff834f77333d2dfad3392bc81887b272c16661d2
restrict keyword doesn't compile in Visual Studio
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/408/comments
1
2024-10-15T05:56:33Z
2024-10-15T08:47:31Z
https://github.com/libsdl-org/SDL_ttf/issues/408
2,587,723,406
408
[ "libsdl-org", "SDL_ttf" ]
I'm building the SDL3 versions of the libraries I want to use on an odd aarch64 Ubuntu system. If you know about Termux, you'll understand what I mean if I say it's an Ubuntu proot. I don't know anything about how this works, so I'll just drop the logs here Don't be surprised if I don't answer right away, it's 9...
Errors when building from source on aarch64 Linux
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/405/comments
7
2024-10-07T19:17:21Z
2024-10-15T16:15:48Z
https://github.com/libsdl-org/SDL_ttf/issues/405
2,571,260,300
405
[ "libsdl-org", "SDL_ttf" ]
@slouken , here's some probably problematic shadow warnings ``` src/SDL_ttf.c: In function ‘TTF_GetTextSizeWrapped’: src/SDL_ttf.c:3428:21: warning: declaration of ‘w’ shadows a parameter [-Wshadow] 3428 | int w, h; | ^ src/SDL_ttf.c:3310:99: note: shadowed declaratio...
arning: declaration of ‘w’ shadows a parameter [-Wshadow]
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/379/comments
1
2024-09-27T09:45:04Z
2024-09-27T09:51:20Z
https://github.com/libsdl-org/SDL_ttf/issues/379
2,552,489,053
379
[ "libsdl-org", "SDL_ttf" ]
When API documentation (manual pages) is enabled, wikiheaders sees ``` typedef struct _TTF_Font TTF_Font; ``` and generates a `_TTF_Font` man page. This seems probably unintended. Am I correct to think that SDL's coding style is to make the struct tag be the same name as the typedef, more like this? ``` ...
Installs a man page for _TTF_Font(3type)
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/372/comments
2
2024-07-30T16:29:49Z
2024-07-31T04:41:20Z
https://github.com/libsdl-org/SDL_ttf/issues/372
2,438,232,260
372
[ "libsdl-org", "SDL_ttf" ]
While packaging a snapshot in Debian I noticed that when man pages are enabled, this library installs `UNICODE_BOM_NATIVE(3)`, which isn't in the SDL or `TTF_` namespace and seems likely to conflict with other packages. Looking at the header file, there's also `UNICODE_BOM_SWAPPED` (which is undocumented, therefore ...
UNICODE_BOM_NATIVE, UNICODE_BOM_SWAPPED not in library namespace
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/371/comments
1
2024-07-30T16:27:43Z
2024-09-26T19:25:09Z
https://github.com/libsdl-org/SDL_ttf/issues/371
2,438,228,776
371
[ "libsdl-org", "SDL_ttf" ]
I'm using the cmake files provided with the SDL_ttf download 2.22.0 to link SDL2 to my custom game engine. But when adding the SDL libraries to my executable using the add_subdirectory function my system tells me that I need to go install freetype. I thought that SDL_ttf included freetype for portability?
SDL2 Cmake not finding freetype
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/370/comments
5
2024-07-17T17:47:34Z
2024-07-30T14:44:49Z
https://github.com/libsdl-org/SDL_ttf/issues/370
2,414,192,585
370
[ "libsdl-org", "SDL_ttf" ]
The first screenshot is SDL2: <img width="370" alt="Screenshot 2024-07-12 at 3 51 47 PM" src="https://github.com/user-attachments/assets/f60bf14a-b18c-4950-a468-43cdb26e4c79"> The second screenshot is SDL3: <img width="394" alt="Screenshot 2024-07-12 at 3 51 22 PM" src="https://github.com/user-attachments/asse...
Fonts render differently with SDL3.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/369/comments
4
2024-07-12T19:53:51Z
2024-09-26T19:15:02Z
https://github.com/libsdl-org/SDL_ttf/issues/369
2,406,239,438
369
[ "libsdl-org", "SDL_ttf" ]
<img width="1173" alt="Screenshot 2024-07-11 at 8 00 59 PM" src="https://github.com/user-attachments/assets/9d210c91-fac0-4f0d-b0d3-3cc13d258bbf">
TTF_RenderUTF8_Solid crashes on null pointer inside Create_Surface_Solid
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/368/comments
1
2024-07-12T00:01:24Z
2024-07-12T00:20:20Z
https://github.com/libsdl-org/SDL_ttf/issues/368
2,404,378,950
368
[ "libsdl-org", "SDL_ttf" ]
I get the error message in the title when running brew install sdl_ttf. Should I use an alternative library? Thanks for your help.
Error: sdl_ttf has been disabled because it is deprecated upstream!
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/367/comments
2
2024-07-11T09:04:48Z
2024-07-11T09:58:36Z
https://github.com/libsdl-org/SDL_ttf/issues/367
2,402,656,538
367
[ "libsdl-org", "SDL_ttf" ]
Text has rules and settings needed for its rendering depending on its characters. Scripts, text direction and language are settings that should be changed depending on the characters and their context. These change the visual effect on the rendered text. At the moment SDL_TTF provides us the possibility to set any o...
Let HarfBuzz decide which script, direction and language to use in case not set
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/365/comments
0
2024-07-05T15:41:06Z
2024-07-08T08:30:01Z
https://github.com/libsdl-org/SDL_ttf/issues/365
2,392,825,303
365
[ "libsdl-org", "SDL_ttf" ]
As topic. Building SDL_ttf against the lastest SDL3 master as pulled today gives the following errors: ``` /home/etna/Tmpdir/SDL_ttf/examples/testapp.c:357:31: error: no member named 'keysym' in 'struct SDL_KeyboardEvent' if (event.key.keysym.sym == SDLK_F1) { ~~~~~~~~~ ^ /hom...
Cannot build against latest SDL3 master
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/364/comments
3
2024-06-22T12:01:18Z
2024-06-23T07:06:29Z
https://github.com/libsdl-org/SDL_ttf/issues/364
2,367,781,210
364
[ "libsdl-org", "SDL_ttf" ]
Rebuilding SDL_ttf with `FT_DISABLE_PNG=off` does somewhat work to render emojis from bitmap fonts (eg NotoColorEmoji), we're getting color emoji support (see [here](https://github.com/kivy/kivy/pull/8313/files#diff-6ec83839ad4876205412ed61457df567b2443a4925e3e2940d65f205df1528ecR128)), the problem is that said emoji c...
Emoji rendering size issue
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/363/comments
0
2024-06-20T12:59:01Z
2025-01-28T21:43:26Z
https://github.com/libsdl-org/SDL_ttf/issues/363
2,364,385,887
363
[ "libsdl-org", "SDL_ttf" ]
This is really a feature request/limitation, but I'll write the issue template as though it was a bug, because that makes it easier to see what's going on. It might be a duplicate of #338, but it isn't 100% clear to me what the scope of #338 is, so I'm erring on the side of opening a separate issue (which can easily be...
Ability to fall back through multiple fonts if required
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/362/comments
7
2024-06-10T11:09:27Z
2025-01-27T05:02:57Z
https://github.com/libsdl-org/SDL_ttf/issues/362
2,343,618,599
362
[ "libsdl-org", "SDL_ttf" ]
I am unable to compile a code with SDL2_ttf (2.22.0) header included. It is installed via Brew. SDL2 version is 2.30.3. Repro steps: 1. Ensure you have Brew installed (https://brew.sh). 2. Install SDL2 2.30.3 via Brew: `brew install sdl2@2.30.3`. 3. Instal SDL2_ttf 2.20.0 via Brew: `brew install sdl2_ttf@2.22.0`....
macOS with Brew - "fatal error: 'SDL.h' file not found" when including <SDL2/SDL_ttf.h> as a header
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/361/comments
4
2024-06-06T14:01:09Z
2024-06-06T14:59:16Z
https://github.com/libsdl-org/SDL_ttf/issues/361
2,338,345,755
361
[ "libsdl-org", "SDL_ttf" ]
testapp.c , line 650, createRenderer() flag parameter has been removed in SDL3
Need to update testapp.c
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/360/comments
1
2024-05-14T14:36:31Z
2024-05-14T15:44:53Z
https://github.com/libsdl-org/SDL_ttf/issues/360
2,295,666,085
360
[ "libsdl-org", "SDL_ttf" ]
When I downloaded the development library files for MinGW I noticed that the file sizes are pretty large: x86_64-w64-mingw32\bin\SDL2_ttf.dll ~66 MB x86_64-w64-mingw32\lib\libSDL2_ttf.a ~78 MB Whereas for MSVC, they are significantly smaller: SDL2_ttf-2.22.0\lib\x86\SDL2_ttf.dll ~800 KB SDL2_ttf-2.22.0\lib\x8...
Prebuilt MinGW development library files very large compared to MSVC
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/355/comments
2
2024-04-28T09:59:13Z
2024-04-28T16:03:06Z
https://github.com/libsdl-org/SDL_ttf/issues/355
2,267,465,724
355
[ "libsdl-org", "SDL_ttf" ]
Ich wollte den aktuellen Commit von SDL_ttf installieren, aber leider kommt es zu einem Fehler bei „make“. SDL3 konnte problemlos installiert und verwendet werden. ``` $ cmake ../SDL_ttf/ -- The C compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- ...
Linux 64bit - libSDL3_ttf.so.0.0.0: file not recognized: file format not recognized
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/354/comments
5
2024-04-17T15:09:32Z
2024-09-27T06:33:52Z
https://github.com/libsdl-org/SDL_ttf/issues/354
2,248,535,689
354
[ "libsdl-org", "SDL_ttf" ]
Right now, when rendering multi-line text, there is no way to control how close to each other each line will render. `TTF_initFontMetrics` computes a value automatically that looks good, but might not be what the developer needs (e.g. when used in situations with restricted space). CSS allows controlling this with thei...
Proposal: Add an API to modify the lineSkip property
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/353/comments
2
2024-04-17T11:20:48Z
2024-09-27T09:22:07Z
https://github.com/libsdl-org/SDL_ttf/issues/353
2,248,045,725
353
[ "libsdl-org", "SDL_ttf" ]
Sorry if this is not the place. But how do I install this? Here is what I had tried: ./configure make At first I was getting problems for the headers ft2build.h and hb.h. I updated the C_INCLUDE_PATH variable and those went away. Now, the build process runs for a while, but then stops with this: make: *** No ru...
Can't make: No rule to make target 'external/freetype/src/autofit/autofit.c'.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/352/comments
1
2024-04-15T08:57:22Z
2024-04-15T19:07:34Z
https://github.com/libsdl-org/SDL_ttf/issues/352
2,243,095,462
352
[ "libsdl-org", "SDL_ttf" ]
At the moment SDL_ttf provides TTF_SetFontScriptName, a Harfbuzz related function that allows a script to be set (for a specific font) to be used for text shaping. This is useful as long as the client knows the origin of its texts, allowing him to simply set the script relative to his language. If this isn't the cas...
Proposal: Add TTF_GetScript to retreive the script to which unicode character belongs
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/351/comments
1
2024-04-03T10:39:46Z
2024-09-27T04:35:41Z
https://github.com/libsdl-org/SDL_ttf/issues/351
2,222,566,849
351
[ "libsdl-org", "SDL_ttf" ]
Hello! I've been enjoying my time using SDL a bunch and just noticed something that is causing me a slight issue. It seems like spaces are left over when text is wrapped, causing the text to be shifted a bit off-center. I've attached two images that hopefully demonstrate what I mean. The first one is when the text is t...
Text is shifted off-center when wrapped using TTF_WRAPPED_ALIGN_CENTER
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/350/comments
4
2024-04-02T23:53:04Z
2024-09-27T08:55:11Z
https://github.com/libsdl-org/SDL_ttf/issues/350
2,221,636,883
350
[ "libsdl-org", "SDL_ttf" ]
Hello everyone, thanks a lot for all the work on SDL libraries! I opening this issue to report a different behavior between Linux and macOS for what regards the generation of CMake config files. Using the `2.22.0` release as an example, in Linux, the `IMPORTED_SONAME_RELEASE` (i.e. the name of the library actua...
On macOS CMake config file IMPORTED_SONAME refers to full name of the library (including the minor number) instead to libSDL2_ttf-2.0.so.0
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/347/comments
3
2024-03-23T11:19:59Z
2024-09-27T06:33:26Z
https://github.com/libsdl-org/SDL_ttf/issues/347
2,203,832,142
347
[ "libsdl-org", "SDL_ttf" ]
This is probably known already, I'm opening this just to keep track of the progress and so that other people know it's a known issue. Compiling SDL and SDL_ttf from source reports a very long list of errors related to SDL_RWops being renamed to SDL_IOStream. [Same issue with SDL_img](https://github.com/libsdl-org...
`SDL_RWops_renamed_SDL_IOStream` with latest SDL3 commit
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/344/comments
0
2024-03-16T15:24:25Z
2024-03-18T22:32:19Z
https://github.com/libsdl-org/SDL_ttf/issues/344
2,190,099,048
344
[ "libsdl-org", "SDL_ttf" ]
Hello, one of the pygame-ce members was working on porting SDL_ttf's `TTF_SetFontKerning` function to pygame-ce's font module (https://github.com/pygame-community/pygame-ce/pull/2718), but we noticed that it didn't seem to have any impact on the text, in all the fonts we tried. I tried arial, times new roman, freesansb...
Enabling/disabling kerning not having any impact on rendering
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/339/comments
1
2024-02-29T07:46:25Z
2024-02-29T15:20:34Z
https://github.com/libsdl-org/SDL_ttf/issues/339
2,160,623,539
339
[ "libsdl-org", "SDL_ttf" ]
Hi, I'm creating a terminal emulator in SDL2 and finding a lot of characters aren't present in a particular type-face (examples below). I'd like to be able to define fallback fonts to cover instances were glyphs aren't available in the default type face. After a bit of searching online, the only reference to this...
Fallback fonts on SDL2
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/338/comments
4
2024-02-14T10:24:05Z
2024-06-10T15:51:50Z
https://github.com/libsdl-org/SDL_ttf/issues/338
2,134,006,789
338
[ "libsdl-org", "SDL_ttf" ]
Please excuse my ignorance, I'm very unfamiliar with both SDL_ttf and freetype. I am using mingw32/GCC and CMake. I built freetype 2.13.2 with FT_REQUIRE_PNG and FT_CONFIG_OPTION_USE_PNG, then I built SDL2_ttf 2.22.0. I am building and running my program with the libfreetype.dll/SDL2_ttf.dll that I built. When I ...
Cannot render full color emoji font
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/335/comments
2
2024-02-01T21:01:29Z
2024-06-09T20:05:47Z
https://github.com/libsdl-org/SDL_ttf/issues/335
2,113,475,002
335
[ "libsdl-org", "SDL_ttf" ]
When linking with the static lib cmake throws a random error. Trying on Visual studio results in VS saying that the library is corrupted
Release 2.22.0 lib causes an error on linking
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/334/comments
1
2024-01-26T20:38:03Z
2024-01-26T20:49:01Z
https://github.com/libsdl-org/SDL_ttf/issues/334
2,102,868,411
334
[ "libsdl-org", "SDL_ttf" ]
The latest release of FreeType is 2.13.2, should we update our pinned version for the SDL_ttf release?
FreeType version update?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/332/comments
10
2024-01-15T19:19:55Z
2024-01-16T00:06:04Z
https://github.com/libsdl-org/SDL_ttf/issues/332
2,082,569,749
332
[ "libsdl-org", "SDL_ttf" ]
Hi, I identified this bug while testing pygame: https://bugs.gentoo.org/920956 In the blit glyph routines `BG_64` and `BG_32`, the loops invoke undefined behavior by casting some offset into a larger integer to `u8`. GCC UBSAN at least catches and warns about this. These problems are easy to catch on sparc, becau...
Unaligned access UB in BLIT_GLYPH routines
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/324/comments
22
2023-12-30T03:01:00Z
2024-01-15T20:37:06Z
https://github.com/libsdl-org/SDL_ttf/issues/324
2,060,548,699
324
[ "libsdl-org", "SDL_ttf" ]
Hi. Someone can point me where to find old versions of SDL_ttf? The oldest present here, 2.0.15 is not being detected by my SDL (1.2.15) configure script.
Looking for old versions
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/322/comments
1
2023-12-24T17:30:56Z
2023-12-24T19:23:47Z
https://github.com/libsdl-org/SDL_ttf/issues/322
2,055,170,826
322
[ "libsdl-org", "SDL_ttf" ]
![Screenshot_2023-12-18_09-34-42](https://github.com/libsdl-org/SDL_ttf/assets/70011162/d74ec176-6cbf-481c-a98c-e692c70fc8d7) Dear SDL_TTFs, I am running the LEM editor with SDL2 GUI on OpenBSD. LEM uses a LOCK symbol in it's modeline to indicate a read-only buffer. Unfortunately this does cause an error and ...
Lock emoji issue
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/321/comments
11
2023-12-21T09:34:16Z
2025-01-28T21:43:26Z
https://github.com/libsdl-org/SDL_ttf/issues/321
2,052,054,882
321
[ "libsdl-org", "SDL_ttf" ]
for the record, Harfbuzz wouldn't compile because of warn-error "cast-function-type-strict' in hb-ft.cc with ndk-r26 fixed by: ``` diff --git a/src/hb.hh b/src/hb.hh index 54191c0a4..efc461978 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -133,6 +133,7 @@ #pragma GCC diagnostic ignored "-Wstrict-aliasing" #p...
Harbuzz compilation fails because of Wcast-function-type-strict
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/320/comments
5
2023-12-20T20:58:29Z
2024-01-03T16:42:17Z
https://github.com/libsdl-org/SDL_ttf/issues/320
2,051,257,033
320
[ "libsdl-org", "SDL_ttf" ]
Since SDL commit https://github.com/libsdl-org/SDL_ttf/commit/79848aac621ffe7048365e4611367e093719d884ok Harfbuzz fails to compile on Android This patch is missing: https://github.com/libsdl-org/SDL_ttf/commit/f903900e8040a55486e8d59580db14002ea6e55f (issue https://github.com/libsdl-org/SDL_ttf/issues/214) But...
Harfbuzz fails to compile on Android
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/319/comments
3
2023-12-20T20:57:34Z
2023-12-28T20:13:49Z
https://github.com/libsdl-org/SDL_ttf/issues/319
2,051,256,055
319
[ "libsdl-org", "SDL_ttf" ]
i compiled sdl_ttf like how i always compiled other libraries but for some reason sdl_ttf gives me an error like this ``` /usr/bin/ld: /home/cody/Dev/Dear-Cupid/libs/SDL/lib/libSDL3.a(SDL_dynapi.c.o): in function `get_sdlapi_entry': SDL_dynapi.c:(.text+0x167c2): warning: Using 'dlopen' in statically linked applica...
undefined reference to error?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/318/comments
4
2023-12-09T22:14:57Z
2023-12-11T15:03:34Z
https://github.com/libsdl-org/SDL_ttf/issues/318
2,034,106,289
318
[ "libsdl-org", "SDL_ttf" ]
Hi, The SDL2 version of the TTF_OpenFontRW's documentation says the following: From https://github.com/libsdl-org/SDL_ttf/blob/SDL2/SDL_ttf.h#L238C3-L239C42: ``` If `freesrc` is non-zero, the RWops will be closed before returning, whether this function succeeds or not. ``` I suspect this is not true becau...
SDL2 TTF_OpenFontRW handling of RWops does not match documentation
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/317/comments
0
2023-12-01T22:15:04Z
2024-01-15T20:37:19Z
https://github.com/libsdl-org/SDL_ttf/issues/317
2,021,657,672
317
[ "libsdl-org", "SDL_ttf" ]
I've run external/download.sh to get the dependencies, and then: `cmake -DCMAKE_BUILD_TYPE=Release .. -DSDL3_DIR=../external/SDL` fails with: ``` -- Configuring SDL3_ttf 3.0.0 CMake Error at CMakeLists.txt:87 (find_package): By not providing "FindSDL3.cmake" in CMAKE_MODULE_PATH this project has asked CMak...
Help building SDL_ttf using CMake?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/316/comments
6
2023-11-29T21:36:01Z
2024-01-15T19:32:05Z
https://github.com/libsdl-org/SDL_ttf/issues/316
2,017,456,472
316
[ "libsdl-org", "SDL_ttf" ]
INFO: Couldn't render text: Text has zero width I tested some fonts and there were no issues But this font named "智勇手书体" cannot be rendered correctly Will display: INFO: Couldn't render text: Text has zero width I have attached the font changes and related screenshots ![image](https://github.com/libsdl-org/SDL...
In a chinese font. It shows INFO: Couldn't render text: Text has zero width
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/315/comments
1
2023-11-11T11:34:28Z
2023-11-11T13:48:25Z
https://github.com/libsdl-org/SDL_ttf/issues/315
1,988,906,050
315
[ "libsdl-org", "SDL_ttf" ]
I'm sorry。Unreplicated!
Simsum.ttc font file rendering Chinese italics does not work
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/313/comments
0
2023-11-04T16:02:08Z
2023-11-13T10:03:53Z
https://github.com/libsdl-org/SDL_ttf/issues/313
1,977,409,750
313
[ "libsdl-org", "SDL_ttf" ]
`TTF_RenderUTF8_Blended_Wrapped` returns `NULL` without setting an exception when given a string with 2 or more newlines (string contains only newlines), for example, `"\n\n"`. It works if any other characters are added. Version: `SDL_ttf 2.20.2` System: `Windows 10` MRE: ```c #include <stdio.h> #include <SDL...
`TTF_RenderUTF8_Blended_Wrapped` fails when given 2+ newlines.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/311/comments
0
2023-10-23T22:49:14Z
2024-01-15T20:38:05Z
https://github.com/libsdl-org/SDL_ttf/issues/311
1,958,153,053
311
[ "libsdl-org", "SDL_ttf" ]
Hello friends! I'm trying to open a ttf file, which is a valid font file, but I'm getting an error message: "Couldn't load font file". I've tried downloading different fonts from various websites, but to no avail. I've also checked the permissions on the font files, and they are accessible with full permissions. ...
Couldn't load font file
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/309/comments
14
2023-10-07T23:03:24Z
2023-10-14T06:52:07Z
https://github.com/libsdl-org/SDL_ttf/issues/309
1,931,539,158
309
[ "libsdl-org", "SDL_ttf" ]
## Font language. This library currently has support for setting a font's script (via `TTF_SetFontScriptName`) and text direction (via `TTF_SetFontDirection`) to assist with text-shaping using HarfBuzz. However, HarfBuzz has another shaping setting — which is language. This is done with [hb_buffer_set_language](https:...
[Feature request] More text-shaping functionality.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/308/comments
7
2023-10-07T03:06:20Z
2024-01-15T20:11:59Z
https://github.com/libsdl-org/SDL_ttf/issues/308
1,931,159,037
308
[ "libsdl-org", "SDL_ttf" ]
I wanted to design a reusable Font class (Fontu), but it didn't work as expected on windows. An error occurred at SDL_Surface *textSurface = TTF_RenderUTF8_Solid(All::getInstance().getFont("test")->getTTF(), textureText.c_str(), textColor); In Fontu::loadFromFile, if mFont = TTF_OpenFont(path.c_str(), 32); is used, ...
TTF_RenderUTF8_Solid Runtime error
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/304/comments
4
2023-09-06T07:09:12Z
2023-09-07T22:12:10Z
https://github.com/libsdl-org/SDL_ttf/issues/304
1,883,389,846
304
[ "libsdl-org", "SDL_ttf" ]
I wanted to design a reusable Font class (Fontu), but it didn't work as expected on windows. An error occurred at SDL_Surface *textSurface = TTF_RenderUTF8_Solid(All::getInstance().getFont("test")->getTTF(), textureText.c_str(), textColor); In Fontu::loadFromFile, if mFont = TTF_OpenFont(path.c_str(), 32); is used, ...
TTF_RenderUTF8_Solid Runtime error
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/314/comments
1
2023-09-06T06:39:16Z
2023-11-09T17:31:54Z
https://github.com/libsdl-org/SDL_ttf/issues/314
1,983,066,519
314
[ "libsdl-org", "SDL_ttf" ]
The kerning is ok when using normal font style, but on bold it doesn't switch to the bold spacing and sticks to the normal spacing instead. Non-harfbuzz: ![2023-07-31_19-19-53](https://github.com/libsdl-org/SDL_ttf/assets/7954485/df621b6d-1647-4adc-877e-2d2cfb483bd1) Harfbuzz: ![2023-07-31_19-19-38](https://git...
Bitmap font spacing incorrect when using Harfbuzz
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/299/comments
3
2023-08-01T03:01:50Z
2023-08-01T21:17:20Z
https://github.com/libsdl-org/SDL_ttf/issues/299
1,830,375,053
299
[ "libsdl-org", "SDL_ttf" ]
Hello, It looks like there is an lld option that msys2's clang is unable to understand. I don't know what it's used for so I must say that I have no idea what to do in that case: ``` ninja -v [1/1] cmd.exe /C "cd . && C:\msys64\clangarm64\bin\cc.exe -Os -DNDEBUG "-Wl,--version-script=C:/Users/David Demelier/Do...
MSYS2 clang aarch64 build error
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/298/comments
3
2023-07-29T08:04:21Z
2023-08-05T20:07:03Z
https://github.com/libsdl-org/SDL_ttf/issues/298
1,827,368,375
298
[ "libsdl-org", "SDL_ttf" ]
The static library version of SDL_ttf 2.20.2 for MinGW currently exports some symbols from freetype and zlib. If the user tries to statically link their program with SDL_ttf and freetype/zlib, linking will fail with symbol conflicts. What makes it worse is that only some symbols from zlib are exported (haven't tried wi...
Freetype and zlib symbols are exported in the MinGW static lib which causes symbol conflicts
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/297/comments
6
2023-07-19T13:17:35Z
2023-09-07T16:04:35Z
https://github.com/libsdl-org/SDL_ttf/issues/297
1,811,928,621
297
[ "libsdl-org", "SDL_ttf" ]
Currently, SDL_ttf uses the Harmony algorithm with default LCD geometry (uniform RGB subpixels in the horizontal direction) when doing subpixel rendering. According to [freetype docs](https://freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html), > Harmony with default LCD geometry is equivalent to ClearType...
Set LCD geometry for subpixel rendering
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/296/comments
14
2023-07-19T13:09:43Z
2025-01-28T00:25:50Z
https://github.com/libsdl-org/SDL_ttf/issues/296
1,811,913,831
296
[ "libsdl-org", "SDL_ttf" ]
I am proposing a feature that would give back to the user the correct dimensions of a surface with the supplied text of whatever format added. A cstring and UTF-8 implementation would be needed. It would roughly have this signature: ```c // SDL_Rect is placeholder for a tuple of width and height SDL_Rect TTF_SizeT...
Proposal: Add a function like `TTF_SizeTextWrapped`
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/292/comments
2
2023-07-12T14:18:42Z
2024-09-29T00:07:46Z
https://github.com/libsdl-org/SDL_ttf/issues/292
1,801,084,851
292
[ "libsdl-org", "SDL_ttf" ]
This is a rather small issue but when using the Visual Studio projects, when you attempt to open `SDL_ttf.h` it complains that the file does not exists. This is just a configuration problem so it is an easy fix.
In Visual Studio projects SDL_ttf.h is not directly accessible
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/290/comments
4
2023-07-11T22:33:00Z
2023-09-07T16:04:16Z
https://github.com/libsdl-org/SDL_ttf/issues/290
1,799,848,633
290
[ "libsdl-org", "SDL_ttf" ]
Hi, I suspect that some functions are not being exported to `SDL2_ttf.a` (x64). TTF_RenderUTF8_Solid works just fine, but I am unable to static link when using the following functions: TTF_RenderUTF8_Solid_Wrapped TTF_RenderUTF8_LCD TTF_RenderUTF8_LCD_Wrapped TTF_RenderText_LCD TTF_RenderText_LCD_Wrapped TTF_...
TTF_RenderUTF8_LCD and related functions are not being exported to SDL2_ttf.a
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/287/comments
6
2023-06-17T14:39:49Z
2023-06-17T17:29:16Z
https://github.com/libsdl-org/SDL_ttf/issues/287
1,761,879,872
287
[ "libsdl-org", "SDL_ttf" ]
What is the recommended procedure for installing the latest release on Ubuntu (or similar)? `apt` has a really old version, but it's not clear to me how to install by hand from what's on the Releases page. I'm not even quite sure how to compile the code. What I mean by "install" is basically get it so a command like...
How can I install this library on Ubuntu?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/286/comments
1
2023-06-09T22:02:15Z
2023-09-07T15:23:28Z
https://github.com/libsdl-org/SDL_ttf/issues/286
1,750,544,758
286
[ "libsdl-org", "SDL_ttf" ]
I am compiling against a static SDL3, and struggling to find the correct configuration to enable static SDL3 compilation with SDL_ttf. Neither of these work: ``` cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSDL3TTF_VENDORED=ON -DSDL3TTF_HARFBUZZ=ON -DCMAKE_PREFIX_PATH={redacted} -DSDL3TTF_SAMPLES=OFF -DBUILD_SHARED_...
SDL3::SDL3-static (for Static SDL 3 compilation)
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/284/comments
2
2023-05-31T22:30:30Z
2023-05-31T22:38:32Z
https://github.com/libsdl-org/SDL_ttf/issues/284
1,735,122,541
284
[ "libsdl-org", "SDL_ttf" ]
Can I avoid creating a new surface when using SDL_ttf by providing my own?
Rendering onto a previously allocated surface
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/283/comments
4
2023-05-15T23:49:42Z
2025-04-24T20:29:33Z
https://github.com/libsdl-org/SDL_ttf/issues/283
1,710,994,927
283
[ "libsdl-org", "SDL_ttf" ]
__Problem__: I'm using the SDL3 and the SDL_ttf libraries for a project. I cloned both of them as subrepos. I use CMake as a build system, so I added them as subdirectories. Upon building however Clang fails. Therefore I can't use the SDL_ttf library, which is unfornate for my goals. Is there some proper way to ge...
`SDL_aligned_alloc` is not declared. The library won't build.
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/282/comments
2
2023-04-05T15:22:51Z
2023-04-06T14:56:55Z
https://github.com/libsdl-org/SDL_ttf/issues/282
1,655,834,722
282
[ "libsdl-org", "SDL_ttf" ]
I think the CMake generated file as an invalid include directories because once you try to link to `SDL3_ttf::SDL3_ttf` it ends up with: ``` -- Configuring done (0.1s) CMake Error in src/CMakeLists.txt: Imported target "SDL3_ttf::SDL3_ttf" includes non-existent path "/include" in its INTERFACE_INCLU...
Generated file has incorrect include directories
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/279/comments
1
2023-03-28T12:41:45Z
2023-03-28T17:28:32Z
https://github.com/libsdl-org/SDL_ttf/issues/279
1,643,869,074
279
[ "libsdl-org", "SDL_ttf" ]
I tryed to compile on windows 10 with clang, cmake and ninja with option `SDL3TTF_VENDORED` on. These are the versions I used. ```cmd > cmake --version cmake version 3.26.0 CMake suite maintained and supported by Kitware (kitware.com/cmake). > ninja --version 1.11.0 > clang --version clang version 15.0.7 ...
Update vendored freetype, since it fails compiling with clang on windows 10 at ftver.rc
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/274/comments
1
2023-03-23T16:19:19Z
2023-03-24T21:26:08Z
https://github.com/libsdl-org/SDL_ttf/issues/274
1,637,856,159
274
[ "libsdl-org", "SDL_ttf" ]
See these lines here: https://github.com/libsdl-org/SDL_ttf/blob/76e55783a549839ba96b8aafc6d55c8451f950ce/SDL_ttf.c#L3501-L3503 Was just testing out `TTF_RenderUTF8_LCD_Wrapped()` with a background colour of `SDL_Color backg = {0, 0, 0, 0}` and noticed that I was getting a returned surface of `{0, 0, 0, 255}` - O...
Why does LCD text rendering change a background colour with 0 alpha (transparent) to opaque?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/271/comments
2
2023-03-05T18:05:43Z
2024-09-27T06:34:15Z
https://github.com/libsdl-org/SDL_ttf/issues/271
1,610,301,478
271
[ "libsdl-org", "SDL_ttf" ]
I think once there were Wiki-Pages. They are empty now: https://wiki.libsdl.org/SDL2/SDL_ttf Please reactivate it.
SDL-TTF: Wiki-Pages disappeared
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/270/comments
3
2023-03-05T14:48:06Z
2023-03-27T00:20:57Z
https://github.com/libsdl-org/SDL_ttf/issues/270
1,610,229,113
270
[ "libsdl-org", "SDL_ttf" ]
Hello, I'm using ttf 2.20.2 with SDL2 version 2.26.3 and I get a run time error at the start saying "The procedure entry point SDL_CreateRGBSurfaceWithFormatFrom could not be located in the dynamic link library in (projectpath)/SDL2_tff.dll." I'm using Visual Studios if it helps.
SDL_CreateRGBSurfaceWithFormatFrom is missing in SDL2_tff.dll?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/269/comments
2
2023-03-05T05:22:11Z
2023-03-06T19:43:02Z
https://github.com/libsdl-org/SDL_ttf/issues/269
1,610,061,964
269
[ "libsdl-org", "SDL_ttf" ]
I came here to report that _TTF_OpenFontRW_ fails on multiple calls with the same _SDL_RWops_ and requesting a smaller point size than the one(s) requested before, but apparently this is well know since #108 and it's some kind of accepted behavior. Just as reference for people who might encounter the same issue, thi...
Documentation of TTF_OpenFontRW is missing key info
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/267/comments
1
2023-03-01T19:07:21Z
2024-09-27T04:35:42Z
https://github.com/libsdl-org/SDL_ttf/issues/267
1,605,514,381
267
[ "libsdl-org", "SDL_ttf" ]
My fellow project member was working on a PR to port SDL_TTFSetFontDirection to Python (https://github.com/pygame-community/pygame-ce/pull/1956), but couldn't figure out why the top to bottom text and bottom to top text were exhibiting the opposite behaviors. I looked through his code and couldn't find a problem wit...
It seems that text directions TTB and BTT are reversed
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/265/comments
3
2023-02-28T07:53:39Z
2023-03-06T01:27:09Z
https://github.com/libsdl-org/SDL_ttf/issues/265
1,602,536,240
265
[ "libsdl-org", "SDL_ttf" ]
There are 6 different reasons that could lead SDL to log "Couldn't find glyph" when an error occurs in Load_Glyph. It would be nice if each of those had a specific log of it's own instead. --- https://github.com/libsdl-org/SDL_ttf/blob/622ccd655e9b0c3298f1b85fe2869e0beca97ea3/SDL_ttf.c#L2110-L2113 https://g...
Better error log in Load_Glyph
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/263/comments
0
2023-02-05T22:59:42Z
2024-09-27T06:34:14Z
https://github.com/libsdl-org/SDL_ttf/issues/263
1,571,651,264
263
[ "libsdl-org", "SDL_ttf" ]
Hi, I am trying to build the SDL2_ttf 2.20.1 using a FetchContent + add_subdirectory, and I am having an error that I can't quite figure it out what it is: ``` Including SDL_ttf ... CMake Warning at cmake-build-debug/_deps/sdlttf_content-src/cmake/PrivateSdlFunctions.cmake:55 (message): Could not verify SDL2...
CMake error with Could NOT find PrivateSDL2, found suitable version "2.24.1", minimum required is "2.0.10"
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/262/comments
10
2023-02-05T16:53:22Z
2023-02-06T11:47:29Z
https://github.com/libsdl-org/SDL_ttf/issues/262
1,571,520,443
262
[ "libsdl-org", "SDL_ttf" ]
If I compile a copy of SDL3 in /data/SDL3/buildlinuxarm64 that works and I can install it with `make install`. I then check out a copy of `SDL3_ttf` as follows but it gives an error. I have verified that SDL3Config.cmake is located at the specified location. ``` /data/SDL_ttf/build# cmake -DCMAKE_BUILD_TYPE=RelWi...
CMAKE Having difficulty finding SDL3 built locally
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/261/comments
9
2023-02-03T02:11:48Z
2023-02-11T00:24:50Z
https://github.com/libsdl-org/SDL_ttf/issues/261
1,569,093,755
261
[ "libsdl-org", "SDL_ttf" ]
As noted in https://github.com/libsdl-org/SDL_ttf/issues/258, the last release didn't have configure regenerated with the new version. We need to create a new update with that corrected.
Create release with corrected configure
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/260/comments
1
2023-02-01T19:24:04Z
2023-02-07T01:30:30Z
https://github.com/libsdl-org/SDL_ttf/issues/260
1,566,677,870
260
[ "libsdl-org", "SDL_ttf" ]
Hello, I'm facing an issue when compiling from release 2.20.0 on my Raspberry Pi 4B with latest Raspberry Pi OS Lite. Any compilations with the same directives on release 2.0.18 and before work fine. I use the following previous command before starting the make ./configure --without-x At the end of the configur...
Raspberry Pi OS Lite compilation error
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/258/comments
13
2023-01-29T20:53:29Z
2023-02-01T19:22:23Z
https://github.com/libsdl-org/SDL_ttf/issues/258
1,561,453,185
258
[ "libsdl-org", "SDL_ttf" ]
I have a use case to draw UTF-8 encoded strings on screen with a type writer effect. A type writer effect gives users the impression that text is being typed onto the screen. As far as I can tell the SDL_ttf API does not support fetching code points or human perceived characters, grapheme clusters, from UTF-8 string...
Question about UTF-8 encoded strings and grapheme clusters
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/249/comments
2
2022-12-31T09:59:02Z
2024-09-27T04:54:42Z
https://github.com/libsdl-org/SDL_ttf/issues/249
1,515,083,010
249
[ "libsdl-org", "SDL_ttf" ]
Page download not found https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.0.15/SDL2_ttf-2.0.15.tar.gz
Download Page not found - buildozer kivymd
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/248/comments
3
2022-12-27T00:08:58Z
2023-01-01T13:19:26Z
https://github.com/libsdl-org/SDL_ttf/issues/248
1,511,319,190
248
[ "libsdl-org", "SDL_ttf" ]
Specifically Debian. If there are instructions somewhere I could not find them. There doesn't appear to be any support for building with cmake. If there is I can't figure out how to do it so I assume a combination of autogen/configure is required - but I don't know how to use these. Can someone provide a brief expla...
How do I compile this on Linux?
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/247/comments
1
2022-12-08T21:09:12Z
2022-12-09T21:43:47Z
https://github.com/libsdl-org/SDL_ttf/issues/247
1,485,406,680
247
[ "libsdl-org", "SDL_ttf" ]
Build with cmake with these commands ``` mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release cmake --build . --config Release --parallel #CMake >= 3.15 sudo cmake --install . --config Release ``` My cmake version is: 3.18.4 Everything goes well until performing the cmake install with this command: `...
CMake Error: file does not recognize sub-command COPY_FILE
https://api.github.com/repos/libsdl-org/SDL_ttf/issues/245/comments
1
2022-11-25T18:35:11Z
2022-11-25T20:47:43Z
https://github.com/libsdl-org/SDL_ttf/issues/245
1,464,835,143
245