|
From: Thales M. <tha...@gm...> - 2026-08-24 16:07:37
|
I'm sorry. I wrote a reply earlier that didn't pass through the moderation because I attached a file. What I said was that I would move to the Python's scripting functionality of FontForge to resolve this issue. I'm pretty sure it delivers access to all the variables required to do any type of composite generation. And, if you want, you can go to FontForge's source code and look into the file "fvcomposite.c", because that's probably where the bug you are referring to can be found. There's one more hack that you can try. You could get a professional font that already contains all the small caps that you want in composite form, and then replace the splines of that with your splines by copying and pasting(open both fonts through the same instance of FontForge, otherwise the copying and pasting won't work). On Mon, Aug 24, 2026 at 12:26 PM Gé van Gasteren <gev...@gm...> wrote: > All right, > 1. Re. the FF automation: > I now understand that the routine (creating composite glyphs from the > parts) works well with the combining marks but not with your .cap marks. > Therefore, I thought you could temporarily copy your PUA .cap marks into > the slots for the combining marks and let the routine run, then restore the > combining marks. > > 2. There are two ways to render accented characters: > • Pick up the composite glyph from the font and display it. This is the > classic method, easy on the software. > • Pick up the necessary two (or more) components from the font and > assembling the intended accented letter before displaying it. > This requires having anchor points in the glyphs both for letters and > (combining diacritical) marks, so the marks can be attached and positioned > correctly. > With this method, stacking accents becomes possible and is now supported > in most applications: > > https://community.software.sil.org/uploads/default/original/2X/6/6cade8191daba93a2678088024ed27e5539b723b.png > > 3. And another thought you didn’t ask for: > I must confess I don’t feel comfortable using the PUA for a stylistic > variant like small caps. I would instead give it its own font – but I don’t > know your situation. Maybe your application doesn’t let you combine > separate fonts easily. > People with more knowledge may be able to advise how a small-caps style > can be included in a style set. > > On Mon, Aug 24, 2026 at 3:55 PM Mauro Sacchetto via fontforge-users < > fon...@li...> wrote: > >> >> 1) "If the script works well with the combining marks, you could copy >> all your spacing marks into their slots, then let the script do the work >> (after you have adjusted their horizontal positioning...)." >> >> I'm sorry, but I still don't understand. >> >> I have ALL the modifiers (uni02b9-uni20ff) and ALL the combining marks >> (uni0300-uni0362) properly placed in their slots. >> >> In PUA, I added some .cap diacritics so that the acute, grave, and >> circumflex accents are slightly wider and less slanted above the capital >> letters, and so on. >> >> With the anchors and the corresponding "mark" lookups in GPOS, I >> position everything appropriately and indeed quickly obtain the compound >> glyphs. >> >> The problem persists only with the usual three .cap marks (grave, acute, >> and macron): an anomaly because everything else works, and in these >> three cases, and only in these three, it doesn't. Don't you think it >> could be a FF bug? Because otherwise, in my opinion, this inconsistent >> behavior cannot be explained. >> >> >> 2. I don't understand what you mean by saying that apps use composite >> glyphs less and less. In languages like Italian and French, words with >> grave and acute accents are constantly used, while in German, they use >> the umlaut; certainly, not in English... Not to mention Ancient Greek >> (polytonic), which has a plethora of breathings and accents. > > _______________________________________________ > fontforge-users mailing list > fon...@li... > https://lists.sourceforge.net/lists/listinfo/fontforge-users > http://fontforge.10959.n7.nabble.com/User-f8781.html |