-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support text from utf8 file and customized window size. #336
Conversation
zhk
commented
Feb 4, 2024
- Added argument [-windowsize w,h] to specify the windows size.
- added argument [-utf8txtfile pathName] to support message from utf8 file.
- removed [-utf8|-unicode], since the utf8 or unicode text cannot be input from console.
- fixed [-wrapped] display.
- Added argument [-windowsize w,h] to specify the windows size. - added argument [-utf8txtfile pathName] to support message from utf8 file. - removed [-utf8|-unicode], since the utf8 or unicode text cannot be input from console. - fixed [-wrapped] display.
Set window title for showfont
VisualC/glfont/glfont.vcxproj
Outdated
@@ -113,6 +113,7 @@ | |||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;HAVE_OPENGL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |||
<WarningLevel>Level3</WarningLevel> | |||
<AdditionalIncludeDirectories>K:\ProjectsMine\SDL_ttf\external\SDL\include</AdditionalIncludeDirectories> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these system-specific lines.
These visual studio projects assume you have the SDL and SDL_ttf repositories checked out next to each other (and built SDL before).
See lines 99-100 (which probably should use ProjectDir
instead as we do in SDL3_net
examples/showfont.c
Outdated
@@ -47,13 +47,13 @@ typedef enum | |||
|
|||
typedef struct | |||
{ | |||
SDL_Texture *caption; | |||
SDL_Texture* caption; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. Can you fix the .clang-format?
examples/showfont.c
Outdated
case TextRenderSolid: | ||
if (wrap) { | ||
if (wrap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too?
You might need to update the .clang-format to match the style we use
- Removed system-specific lines in .vcxproj files - Should fixed compilation on other platforms
Set SubSystem for glfont and showfont Console