Author Topic: Is it possible to apply two different fonts to th14.5 with thcrap?  (Read 8311 times)



This is a screenshot of ULiL with korean patch which is not made using thcrap.
This patch is very well-made, except for one problem: the dialogue is still printed out vertically. This is quite annoying.

Therefore, I'd like to make a new patch using thcrap applying the data extracted from that patch.
But as you can see, the font used for the dialogue is different from the other used for the menu.
I think this is not possible for thcrap for now. Because the file 'global.js' in script_latin plugin defines a font uniquely, not distinguishing the two cases.

So could you please tell me if there is a way to use two fonts?
« Last Edit: December 08, 2018, 06:33:51 PM by rosenrose »

Re: Is it possible to apply two different fonts to th14.5 with thcrap?
« Reply #1 on: November 28, 2018, 04:02:16 PM »
Oh, I got an information about using two fonts from thpatch center FAQ.
https://www.thpatch.net/wiki/Touhou_Patch_Center:FAQ#Do_you_need_any_particular_fonts_for_the_text_to_look_right.3F_Can_you_change_the_default_font.3F
As the last sentence says, It's not possible currently.

But after further searching, I finally figured out how to use two or more fonts.
This link is a documentation about the "fontrules".  https://github.com/thpatch/thcrap/blob/0a0cc674eb2c115aa2e2d99469dc8e94b91ed467/thcrap/src/textdisp.h

And I tried out. It works.



Maybe the answer of the patch center is outdated.
« Last Edit: November 29, 2018, 03:56:02 PM by rosenrose »