LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Lookup disappears in OTF font - Fontforge (https://www.linuxquestions.org/questions/linux-general-1/lookup-disappears-in-otf-font-fontforge-4175561395/)

Subhraman Sarkar 12-14-2015 02:28 AM

Lookup disappears in OTF font - Fontforge
 
I was trying to make a Bengali otf font using fontforge. Because Bengali has many ligatures and conjuncts, so I created lookup tables in the font. But when I export the sfd font to otf or ttf, the lookup table disappears. It seems the table was somehow not exported along with the font data. I was unable to write conjuncts because of this problem. What is the problem and how it can be solved?
FontForge version :
fontforge 20110222
libfontforge 20110222-ML
(from fontforge -version).

TB0ne 12-14-2015 10:06 AM

Quote:

Originally Posted by Subhraman Sarkar (Post 5463924)
I was trying to make a Bengali otf font using fontforge. Because Bengali has many ligatures and conjuncts, so I created lookup tables in the font. But when I export the sfd font to otf or ttf, the lookup table disappears. It seems the table was somehow not exported along with the font data. I was unable to write conjuncts because of this problem. What is the problem and how it can be solved?
FontForge version :
fontforge 20110222
libfontforge 20110222-ML
(from fontforge -version).

Since you don't tell us what you did to create this font, we have no idea. Did you try looking anything up in the Fontforge documentation, about how to create a lookup?
http://fontforge.github.io/meta/guide-page-2.html

DavidMcCann 12-14-2015 12:09 PM

You might have more luck getting help with fontforge via their mailing list.
https://lists.sourceforge.net/lists/...ontforge-users

Subhraman Sarkar 12-15-2015 01:50 AM

Details
 
I am really sorry, TBOne.
You can view the font here, in the Exodia folder.
I built the lookup table like this :
Elements menu > Font Info > Lookups > GSUB tab >
Add Lookup,
Type - Ligature Substitution,
Feature - cjct (Conjunct Forms), Scripts - DFLT{dflt} beng{dflt} latn{dflt}
Lookup Name - 'cjct' Conjunct Forms lookup 0
I then added a new Encoding Slot : Encoding Menu > Add Encoding Slots > 1 slot, renamed it uni0995_uni09CD_uni09B7.cjct and imported the glyph image there.
Then I added the subtable by clicking Add Subtable and added the data of substitution there.
Ligature Name : uni0995_uni09CD_uni09B7.cjct
Source Glyph Names : uni0995(ক) uni09CD(্) uni09B7(ষ)
It works when I hover the pointer above the entry in the subtable.
Then I exported it by File menu > Generate Fonts. I tried both OTF and TTF, but without any results.

TB0ne 12-15-2015 07:16 AM

Quote:

Originally Posted by Subhraman Sarkar (Post 5464441)
I am really sorry, TBOne.
You can view the font here, in the Exodia folder.

No thanks.
Quote:

I built the lookup table like this :
Elements menu > Font Info > Lookups > GSUB tab >
Add Lookup,
Type - Ligature Substitution,
Feature - cjct (Conjunct Forms), Scripts - DFLT{dflt} beng{dflt} latn{dflt}
Lookup Name - 'cjct' Conjunct Forms lookup 0
I then added a new Encoding Slot : Encoding Menu > Add Encoding Slots > 1 slot, renamed it uni0995_uni09CD_uni09B7.cjct and imported the glyph image there.
Then I added the subtable by clicking Add Subtable and added the data of substitution there.
Ligature Name : uni0995_uni09CD_uni09B7.cjct
Source Glyph Names : uni0995(ক) uni09CD(্) uni09B7(ষ)
It works when I hover the pointer above the entry in the subtable.
Then I exported it by File menu > Generate Fonts. I tried both OTF and TTF, but without any results.
Are those the correct unicode designations? And I agree with DavidMcCann....the fontforge forums would be the best place for an answer in this case.

Subhraman Sarkar 12-16-2015 08:24 PM

Came across the solution!
I have to enable the 'OpenType' option in 'Options' in the 'Generate fonts' dialog. Now the lookup tables are exporting correcty, although I was not able to correctly substitute a Ligature yet.
Thank you very much for your kind help. I am marking this thread as solved.


All times are GMT -5. The time now is 06:55 AM.