Maidens of the Kaleidoscope

~Hakurei Shrine~ => Rika and Nitori's Garage Experiments => Touhou Projects => Topic started by: rosenrose on November 24, 2018, 11:14:41 AM

Title: Is it possible to apply two different fonts to th14.5 with thcrap?
Post by: rosenrose on November 24, 2018, 11:14:41 AM
(https://66.media.tumblr.com/eb0874717400c67602d6986a97135c93/tumblr_pioyrqYshL1w7s9q0o1_1280.jpg)

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?
Title: Re: Is it possible to apply two different fonts to th14.5 with thcrap?
Post by: rosenrose 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 (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 (https://github.com/thpatch/thcrap/blob/0a0cc674eb2c115aa2e2d99469dc8e94b91ed467/thcrap/src/textdisp.h)

And I tried out. It works.

(https://66.media.tumblr.com/aeb730bf028d5676ccda1ecb6693b6d4/tumblr_piwyn0BaGj1w7s9q0o1_1280.png)

Maybe the answer of the patch center is outdated.