How to generate composite glyphs in batches?

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
hhwxyhh
Posts: 12
Joined: Thu Oct 10, 2019 4:42 am

How to generate composite glyphs in batches?

Post 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
Erwin Denissen
Moderator
Moderator
Posts: 9200
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: How to generate composite glyphs in batches?

Post 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
Erwin Denissen
High-Logic
Proven Font Technology
hhwxyhh
Posts: 12
Joined: Thu Oct 10, 2019 4:42 am

Re: How to generate composite glyphs in batches?

Post 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.
Erwin Denissen
Moderator
Moderator
Posts: 9200
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: How to generate composite glyphs in batches?

Post 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.
Erwin Denissen
High-Logic
Proven Font Technology
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9045
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: How to generate composite glyphs in batches?

Post 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 1633 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>
	
My FontsReviews: MainTypeFont CreatorHelpFC13 Pro + MT10.0 @ Win10 2004 build 19041.746
hhwxyhh
Posts: 12
Joined: Thu Oct 10, 2019 4:42 am

Re: How to generate composite glyphs in batches?

Post 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!
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9045
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: How to generate composite glyphs in batches?

Post 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.
My FontsReviews: MainTypeFont CreatorHelpFC13 Pro + MT10.0 @ Win10 2004 build 19041.746
hhwxyhh
Posts: 12
Joined: Thu Oct 10, 2019 4:42 am

Re: How to generate composite glyphs in batches?

Post 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.
Post Reply