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

SCUMM: Multi-font for Korean fan translated games #2606

Merged
merged 3 commits into from Nov 6, 2020

Conversation

wonst719
Copy link
Contributor

@wonst719 wonst719 commented Nov 6, 2020

This PR is part of scummvm-kor merge project.

It adds the ability to load and use multiple external Korean fonts to match the original look.

On a separate note, I intend to refactor CJK text rendering to use Graphics::Font*.

Tested with:

  • Loom (DOS/CD/Korean patched)
  • Monkey Island 2 (DOS/Korean patched)
  • Indy 4 (DOS/CD/Korean patched)
  • DOTT (DOS/CD/Korean patched)
    scummvm-monkey2-kr-00002
    scummvm-monkey2-kr-00004

@ghost
Copy link

ghost commented Nov 6, 2020

DeepCode's analysis on #956e70 found:

  • ⚠️ 1 warning 👇

Top issues

Description Example fixes
Using sprintf can lead to severe buffer overflow vulnerabilities. Use the safe alternative snprintf instead. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

- use snprintf() instead of sprintf()
@athrxx
Copy link
Contributor

athrxx commented Nov 6, 2020

The new code seems to be well separated from the existing code. I don't see any issues.

Rendering through the CharsetRendererTownsV3 is a bit ugly. And half of the methods get redirected to CharsetRendererV3 anyway. And the actual MI2 FM-Towns version doesn't even use CharsetRendererTownsV3 (since it isn't Scumm3; it uses CharsetRendererClassic). But that's just nitpicking. We can still check after the merge whether it makes sense to come up with a new CharsetRenderer subclass...

@sev-
Copy link
Member

sev- commented Nov 6, 2020

Thanks, all is nice and clean. I'll do the occasional formatting fixes in-tree.

@sev- sev- merged commit 0818564 into scummvm:master Nov 6, 2020
@wonst719 wonst719 deleted the scummvm-kor-feature-scumm-multifont branch November 7, 2020 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants