Lazy Text Tool Plugin and japanese vertical text

Hey, just out of curiosity, does CSP let you export that big text as SVG? The reason is I am wondering about the accuracy of some of the formatting even when used horizontally.

Here is an example of when I overlay it with horizontally with krita, notice the extra spacing?

Even inkscape doesn’t match up. So I want to see if they have some custom rules in the svg or etc.

1 Like

First, some additional information.
There are two main types of Japanese fonts: monospaced fonts (等幅) and proportional fonts (P).
Monospaced fonts consist of full-width characters with a uniform width close to that of a square, and other half-width characters. Some half-width fonts have a uniform width that is a fraction of the width of full-width fonts, while others, such as “l” and “W,” have different widths depending on the character.
The Han-serifJP font you are using now is a monospaced font, and half-width characters have varying widths.Some fonts, such as MicroSoft-Mincho font, are monospaced and the width of half-width characters is the same for both “l” and “W”. Note that half-width does not necessarily mean that the full-width characters are exactly half width.
A P font is a font in which the width of the glyphs of some characters, such as punctuation marks, are narrowed and pre-adjusted so that the text lines up beautifully. It is customary to include a “P” in the name of the font. (The degree to which a P font adjusts which characters depends on the font creator.
With primitive software, a monospaced font will type full-width characters at equal intervals.
Here is an explanation of the two functions of CSP in vertical writing.
Automatic horizontal-in-vertical … When a series of half-width characters are typed, the text will be written horizontally up to the specified number of characters (by default, up to two characters, but you can set from one to four characters).
Shrink the width of punctuation … automatically shrinks full-width punctuation marks, parentheses, and “.” to a width similar to half-width characters (only omitting white space, the glyph of the character remains full-width).
With these features, CSP can make a monospaced font look as if it were a P font, and it can also be deactivated to return to normal monospacing. The images I have shown so far are of a monospaced font, Han-serifJP, adjusted and slightly reduced by CSP.
I should have told you about the specifications of the Japanese font and the detailed settings of the CSP early on, but I didn’t know about it until I looked into it properly this time, so I’m late telling you.

1 Like

I’m not familiar with SVG data, do I just convert the CSP text outline to vector data and pass it as SVG? (CSP cannot be converted to SVG data without outlining the text.
Apparently, CSP tends to fail to save SVG data with complex shapes like text outlines of hundreds of characters, and I could only convert short sentences of around 10 characters into SVG.

1 Like

This is the image I created with the new rotated font installed. I added “Wl” and “lW” to check the center line. Considering that three consecutive half-width characters are rare in vertical Japanese writing, if “! !” and "! ?"are correctly positioned in the middle, the script has already reached the practical stage.

■あっとまーく、はんにゃしんぎょう。
■ケース・バイ・ケ~ス(多分)ですどーも
■それは「恐らく」正しいフォント?
■123=ABC@♡!
■奇妙奇天烈摩訶不思議魑魅魍魎

■半角数字12で!!あ!?で!!!
□
■ab■123■??■???■Wl■lW

Log

1 Like

I plan to support both, it would be simply a configuration option away. I just needed to know if the CSP custom format is the standard that I have to replicate pixel for pixel or simply “close enough”.

To show what I mean, it seems brackets have a bit more complex spacing than simply half-width, at least when bundled with other stuff. It ends up pretty much pixel close for the rotated text, but when bundled with vertical text the spacing changes:

Exporting as path defeats the purpose, but if it isn’t an option that pretty much confirms to me they are doing their own thing.

1 Like

I forgot to post this, this is the text of the CSP without annotations.Just in case.

1 Like

(commenting to keep topic alive)

3 Likes

For the time being, with 5.0 beta released and the python api stabilized, priority has switched to getting the LazyTextTool Prototype with 5.0 features. Once I am done with that, I’ll come back to this. (It shouldn’t take too long probably)

3 Likes

wow, looking back, I am just asking for my friend in Japan if typing Japanese in Krita is possible but now we are here making a new code for it lol. I and my friend in Japan would like to thank you all for your efforts, also if you are curious, my friend in Japan is an aspiring artist and he liked Krita but he wishes for the verticle typing thing. I asked him if he wants to join us but he is a bit too held up right now but he wants to say thanks to you all.

3 Likes

(commenting to keep topic alive)

1 Like

please don’t do that. you can create new topic later. Or when the feature is implemented and if the developers need to discuss we can re open it on request.

1 Like

Maybe it should be moved to “feature requests” so that there is no time limit

1 Like

understood

1 Like

Hmm that’s a good idea. I think develop plugins would be good place. @KnowZero is it okay if I move parts of the thread?

1 Like

Sure, go ahead.

1 Like

I moved it to a new topic created by @AKIBATAKU_39 under develop category. I changed the title. Let me know if you need to edit it or do bring in more threads in this topic

1 Like

thanks, this is all I think it needs.

1 Like