Page 1 of 1

How to generate composite glyphs in batches?

Posted: Thu Oct 10, 2019 6:59 am
by hhwxyhh
I think it's okay to add compound fonts to my fonts manually, but how do I import and generate fonts in the form of XML code? What are the specific steps?How to generate composite glyphs in batches?
Image

Image

Re: How to generate composite glyphs in batches?

Posted: Thu Oct 10, 2019 9:18 am
by Erwin Denissen
You should read the Complete Composites document written by Bhikkhu Pesala. It is attached in this forum topic:
Complete Composites in FontCreator 12

Re: How to generate composite glyphs in batches?

Posted: Fri Oct 11, 2019 2:00 am
by hhwxyhh
Erwin Denissen wrote: Thu Oct 10, 2019 9:18 am You should read the Complete Composites document written by Bhikkhu Pesala. It is attached in this forum topic:
Complete Composites in FontCreator 12
I'm sorry, I can't understand the article you sent. I would like to ask you how to generate XML files into TTF files in FONTCTEATOR? Which button do I need to click in the FONTCTEATOR interface? Please help me. Thank you very much.

Re: How to generate composite glyphs in batches?

Posted: Fri Oct 11, 2019 7:19 am
by Erwin Denissen
hhwxyhh wrote: Fri Oct 11, 2019 2:00 am I'm sorry, I can't understand the article you sent. I would like to ask you how to generate XML files into TTF files in FONTCTEATOR? Which button do I need to click in the FONTCTEATOR interface? Please help me. Thank you very much.
That is not possible.

Re: How to generate composite glyphs in batches?

Posted: Fri Oct 11, 2019 10:47 am
by Bhikkhu Pesala
Take a look at the Glyph Transformer Wizard.

To create the composited glyph uni4E00 in your first post, you could create a script to insert the glyph uni4E00 and complete composites based on HZ0001 and PY1087.
Insert Glyph and Compose.png
Insert Glyph and Compose.png (10.87 KiB) Viewed 4088 times
The definition for that would have to be added to the CompositeData.xml file.

Code: Select all

<Composite>
	<GlyphName>uni4E000</GlyphName>
	<Member id="1">
	<GlyphName>HZ0001</GlyphName>
	</Member>
	<Member id="2">
	<GlyphName>PY1087</GlyphName>
	<InheritLSB>TRUE</InheritLSB>
	<InheritRSB>TRUE</InheritRSB>
	</Member>
</Composite>
	

Re: How to generate composite glyphs in batches?

Posted: Fri Oct 11, 2019 11:51 pm
by hhwxyhh
Bhikkhu Pesala wrote: Fri Oct 11, 2019 10:47 am Take a look at the Glyph Transformer Wizard.

To create the composited glyph uni4E00 in your first post, you could create a script to insert the glyph uni4E00 and complete composites based on HZ0001 and PY1087.

Insert Glyph and Compose.png

The definition for that would have to be added to the CompositeData.xml file.

Code: Select all

<Composite>
	<GlyphName>uni4E000</GlyphName>
	<Member id="1">
	<GlyphName>HZ0001</GlyphName>
	</Member>
	<Member id="2">
	<GlyphName>PY1087</GlyphName>
	<InheritLSB>TRUE</InheritLSB>
	<InheritRSB>TRUE</InheritRSB>
	</Member>
</Composite>
	
Your method really works. That's great! You are a real warmhearted person! Thank you very very very much!

Re: How to generate composite glyphs in batches?

Posted: Sat Oct 12, 2019 5:08 am
by Bhikkhu Pesala
hhwxyhh wrote: Fri Oct 11, 2019 11:51 pmYour method really works. That's great! You are a real warmhearted person! Thank you very very very much!
XML coding is quite powerful, but like all coding requires great care. Just one small typo in CompositeData.xml can break the Complete Composites feature. Keep backups when editing it and read the PDF Tutorial to understand the correct syntax.

Re: How to generate composite glyphs in batches?

Posted: Sat Oct 12, 2019 8:30 am
by hhwxyhh
Bhikkhu Pesala wrote: Sat Oct 12, 2019 5:08 am
hhwxyhh wrote: Fri Oct 11, 2019 11:51 pmYour method really works. That's great! You are a real warmhearted person! Thank you very very very much!
XML coding is quite powerful, but like all coding requires great care. Just one small typo in CompositeData.xml can break the Complete Composites feature. Keep backups when editing it and read the PDF Tutorial to understand the correct syntax.
I will be careful. Thank you for reminding me. Thank you again.