problem about CJK compatibility forms

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

problem about CJK compatibility forms

Post by yucong » Sun Oct 04, 2015 1:46 pm

hello,I'm a new designer with fontcreator.now,I met a big problem.I designed CJK symbols and punctuation,CJK compatibility forms.But,CJK compatibility forms can't use. for example.I write 《china》,when I turned it to vertical typo,I want《》can change presentation form for vertical left or right double angle bracket,but ,they don't change.what can I do? I still can't solve this problem :oops: :oops: :oops:

Erwin Denissen
Moderator
Moderator
Posts: 8321
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: problem about CJK compatibility forms

Post by Erwin Denissen » Sun Oct 04, 2015 1:50 pm

I'm not sure, but maybe your font lacks some characters or it is missing specific OpenType layout features.

Do you happen to know fonts that do work correctly?
Erwin Denissen
High-Logic
Proven Font Technology

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Sun Oct 04, 2015 2:53 pm

thanks for your answer.In addition to the CJK compatibility forms (eg:《》{}【】())other fonts do work correctly.I guess maybe miss specific Opentype layout features like you said.May I do some setting in Opentype Designer?because I don't know how to programming. :oops: :oops:

Erwin Denissen
Moderator
Moderator
Posts: 8321
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: problem about CJK compatibility forms

Post by Erwin Denissen » Sun Oct 04, 2015 3:58 pm

Do let us know which fonts work, so we can better understand the issue.
Erwin Denissen
High-Logic
Proven Font Technology

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Tue Oct 06, 2015 1:25 pm

I know Microsoft YaHei by Microsoft Corporation in 2008 do work correctly. Thank you very much.

Erwin Denissen
Moderator
Moderator
Posts: 8321
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: problem about CJK compatibility forms

Post by Erwin Denissen » Wed Oct 07, 2015 8:37 am

Yes, this is definitely due to missing OpenType layout features. See the screenshot where you see the vertical writing feature in action:
VerticalWriting.png
VerticalWriting.png (114.96 KiB) Viewed 3507 times
For your font to support this, you need to add similar features.

This script (import it or paste it in the Code Editor) should get you started:

Code: Select all

script hani {
  feature VerticalWriting;
}

feature VerticalWriting vert {
  lookup SingleSubstitution1;
}

lookup SingleSubstitution1 {
  sub arrowleft -> arrowup;
  sub arrowup -> arrowright;
  sub arrowright -> arrowdown;
  sub arrowdown -> arrowleft;
  sub uni2225 -> uni2225.v;
  sub uniFF08 -> uniFE35;
  sub uniFF09 -> uniFE36;
  sub uniFF1D -> uniFF1D.v;
  sub uniFF3B -> uniFE47;
  sub uniFF3D -> uniFE48;
  sub uniFF3F -> uniFE33;
  sub uniFF5B -> uniFE37;
  sub uniFF5D -> uniFE38;
  sub uni3008 -> uniFE3F;
  sub uni3009 -> uniFE40;
  sub uni300A -> uniFE3D;
  sub uni300B -> uniFE3E;
  sub uni3010 -> uniFE3B;
  sub uni3011 -> uniFE3C;
}
Let us know if you need additional help with this.
Erwin Denissen
High-Logic
Proven Font Technology

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Fri Oct 09, 2015 1:38 am

I'm very appreciate for your help.I'll try it now.

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Fri Oct 09, 2015 1:48 pm

hello,Erwin Denissen.I met a new problem.when I copied script in code page ,I press action,it occured:
Compiling script...
[Error] : Linker error: Unable to link "arrowleft" to a glyphid
Failed
Elapsed time: 00:00:00.0



and then I still can't find "single substitution1"beyond vertical writing.
how can I do to let you see the screenshot?

Erwin Denissen
Moderator
Moderator
Posts: 8321
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: problem about CJK compatibility forms

Post by Erwin Denissen » Fri Oct 09, 2015 2:20 pm

You need to ensure your font contains a glyph with name arrowleft so the compiler can find the correct glyph. In this case it should represent character with codepoint $2190.

If you don't want these characters and glyphs, then simply remove those lines and recompile.
Erwin Denissen
High-Logic
Proven Font Technology

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Fri Oct 09, 2015 2:53 pm

I removed some characters,it occured:compiling script success.then I saved the script.I went to opentype designer,the step is :CJK Ideographic(hani)...Default...Verticalwriting1(vert).get to Verticalwriting1(vert),I choose "new item",it have five options:single adjustment;pair adjustment;mark to base attachment;mark to mark attachment;chained context positioning.But still don't have single subsititution.what's wrong with me?
'

Erwin Denissen
Moderator
Moderator
Posts: 8321
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: problem about CJK compatibility forms

Post by Erwin Denissen » Fri Oct 09, 2015 3:26 pm

It seems you are still using an older version of FontCreator. For this to work I recommend you upgrade to version 9.
Erwin Denissen
High-Logic
Proven Font Technology

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Fri Oct 09, 2015 3:41 pm

by the way ,I use fontcreator 8.0 professional edition.thank you.

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Fri Oct 09, 2015 3:43 pm

I just bought fontcreator 8.0 in January 2015. :x

yucong
Posts: 13
Joined: Mon Sep 14, 2015 2:52 pm

Re: problem about CJK compatibility forms

Post by yucong » Sun Oct 11, 2015 2:12 pm

hello,Erwin Denissen .I have a small question.After I upgrade to fontcreator9.0,these font I was made with fontcreator8.0 could import to new version?or old version still can use?

Post Reply