Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

zhk
Copy link

@zhk 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.

zhk added 2 commits February 4, 2024 11:24
- 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
@@ -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>
Copy link
Contributor

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

@@ -47,13 +47,13 @@ typedef enum

typedef struct
{
SDL_Texture *caption;
SDL_Texture* caption;
Copy link
Contributor

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?

case TextRenderSolid:
if (wrap) {
if (wrap)
Copy link
Contributor

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

zhk added 4 commits February 6, 2024 09:57
- Removed system-specific lines in .vcxproj files
- Should fixed compilation on other platforms
Set SubSystem for glfont and showfont Console
@zhk zhk closed this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants