Skip to content

Usage Example - Load Font Size#321

Closed
rmachu wants to merge 39 commits intothoth-tech:usage-examplesfrom
rmachu:PR-LoadFontSize-rmachu
Closed

Usage Example - Load Font Size#321
rmachu wants to merge 39 commits intothoth-tech:usage-examplesfrom
rmachu:PR-LoadFontSize-rmachu

Conversation

@rmachu
Copy link

@rmachu rmachu commented Dec 1, 2024

This is a usage example of the function load font size and load font size with name as string. The program loads font size 20 then prompts the user to enter a number and validates if the input equals to the size.

Splashkit Functions: Load_font_size and 'Load_font_size_name_as_string'

  • Title and explanation (.txt)
  • C++ code
  • C# code (top-level statements)
  • C# code (Object-Oriented Programming)
  • Python code
  • Screenshot
  • Simple, clear demonstration of the function
  • Code uses Splashkit functions
  • Tested in Chrome and Firefox

@netlify
Copy link

netlify bot commented Dec 1, 2024

Deploy Preview for splashkit-usage-examples ready!

Name Link
🔨 Latest commit 324e6a8
🔍 Latest deploy log https://app.netlify.com/sites/splashkit-usage-examples/deploys/67833ceb57fec400089e347f
😎 Deploy Preview https://deploy-preview-321--splashkit-usage-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@ctrlvish ctrlvish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed this PR and I approve this. There is a small typo in your description for the function names (swapped font and load) but the main content of this PR is all good :)
Describe the example and what it demonstrates.

Splashkit Functions: font_load_size and font_load_size_name_as_string

Checks

  • All required files are present.
    • Title and explanation (.txt)
    • C++ code
    • C# code (top-level statements)
    • C# code (Object-Oriented Programming)
    • Python code
  • Code correctly uses Splashkit functions.
  • Code clearly demonstrates the function.
  • All versions maintain the same structure and comments.

Tests done

  • C++ code ran correctly.
  • C# top level code ran correctly.
  • C# OOP code ran correctly.
  • Python code ran correctly.

Copy link

@huyhuynh2319 huyhuynh2319 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the usage examples. Everything ran without issue.

Checks

  • All required files are present.
  • Title and explanation (.txt)
  • C++ code
  • C# code (top-level statements)
  • C# code (Object-Oriented Programming)
  • Python code

Tests done

  • C++ code ran correctly.
  • C# top level code ran correctly.
  • C# OOP code ran correctly.
  • Python code ran correctly.

@omckeon
Copy link

omckeon commented Jan 30, 2025

Good try with these, but upon further inspection, I can't actually see a useful "use case" for these functions as other graphics functions take a size parameter when using a font.

Combined with the large amount of excess files, I will close this PR.

@omckeon omckeon closed this Jan 30, 2025
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.

8 participants