Vertical layout for Japanese font

Forum rules
Before you post please read how to get help
Post Reply
sashkello
Level 1
Level 1
Posts: 9
Joined: Wed Aug 14, 2013 6:57 pm

Vertical layout for Japanese font

Post by sashkello » Tue Apr 02, 2019 7:22 pm

Hi all!

I'm trying to display vertical Japanese text in my conky, but can't figure out how to do that.
When I go to the font description, it says "Layout Features Vertical Writing", but how do I actually activate it?
I tried obvious things like "style=Vertical", but it's just guessing game and nothing like this works.

Please note: I know how to print character by character one below another, and it isn't the same as vertical writing.

User avatar
zcot
Level 4
Level 4
Posts: 497
Joined: Wed Oct 19, 2016 6:08 pm

Re: Vertical layout for Japanese font

Post by zcot » Tue Apr 02, 2019 8:48 pm

maybe this?

It's the only functionality I can visualize from within conky anyway.

listed as config item:

Code: Select all

       max_text_width width
              When a line in the output contains 'width'  chars  and  the  end
              isn't  reached,  the  next char will start on a new line. If you
              want to make sure that lines don't get broken, set 'width' to 0

so add to conky.config section. try max_text_width = 1,

sashkello
Level 1
Level 1
Posts: 9
Joined: Wed Aug 14, 2013 6:57 pm

Re: Vertical layout for Japanese font

Post by sashkello » Tue Apr 02, 2019 10:35 pm

Japanese vertical font isn't the same as printing characters one by one. Otherwise it would be easy. Lots of fonts seem to list it as a feature, and yet I can't figure out how to activate it.

I.e., ー should become a vertical line, while other characters should stay upright. Full stop and comma locations should be adjusted as well. I can do this in LibreOffice with "Text Direction" option, and it works as it should.

Post Reply

Return to “Compiz, Conky, Docks, & Widgets”