-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weight/spacing combo issues #201
Comments
Are you using the static ttf, static otf, or variable ttf version? |
I'm using the static ttf version. |
You cannot have both the Italic and the Italic-hinted installed at the same time. They have the same names internally and will cause name conflicts - which can cause unexpected results. Not all of the styles are available in the current static fonts. Many of the names are too long and will not fit in the Word font list. This can cause fonts which do exist to not be listed. Many of the names are also too long for the PostScript Name (which is used for embedding in the fonts in the PDF). This results in truncation which then may make the field the same for multiple fonts. This can lead to font cache corruption - which can result in garbage being embedded in the PDF. Like your example image above. Once you remove "Two Beta " from the family name that will help. Peter, you may want to consider separating them by widths so the font menu lists are more organized. So @ischaap you are correct this is definitely still beta, and a few things are going to need some attention before re-testing. |
@psb1558 |
LibreOffice on Windows and Linux do now work correctly if the style groups are all OK. Don't know about the Mac now; but the way it did apply its own weight sorting was totally bizarre (I remember the multiple missing Medium font bug posts). But making the style groups match the typographic family groups does make the families the same on all platforms. |
It looks like "Style Groups" are a FontLab thing. I'll have to find out if it can be done without FontLab. |
No. Glyphs has the same thing. |
@psb1558 and @kenmcd, thank you both for your replies, and @kenmcd thanks for the tip about the two italic fonts. I'll make sure to remove one of them. I can't pretend to understand all of the discussion but I gather that some of the issues I was describing in this thread are because of the way long font names impact functionality in Word and font embedding in pdfs, but that the names will eventually be shortened after beta -- though some may still be too long unless radically renamed. Makes sense! I'm glad things are looking good in InDesign, since that is ultimately where I'll be using Junicode Two. As long as it's functional there and correctly exporting to/embedding in Acrobat, I'll be very happy. If I have to accept that test typesets in Word may always be a bit rough, that's understandable given Word's limitations. |
That may not be the end of it. The limitations on the PostScript Name is for compatibility with PostScript printers - some of which still have very old software. So it may work exporting to PDF, but if someone wants to print the PDF on a PostScript printer, or send it to a service bureau for printing - it may not work properly. |
Adobe has recommended style name abbreviations: these are reported in the Glyphs naming tutorial.
If I use these, it will certainly solve the Windows name length problem. The cost, of course, is less transparency for Mac and Linux users, who won't have problems related to longer names. |
Peeking into Inter, I see, e.g.
and Junicode:
or
What am I doing differently? |
The structure of the style groups in the statics is working as is. They are different in the VF, but again working as is. Note: in the Inter statics the Display optical size was moved to a separate typographic family and the style group was matched to this. |
Regarding the abbreviations, usually you do not have to go so extreme as only two-characters. "Junicode" is not real long so you have some leeway to go a little more readable. I think those Adobe two-character recommendations are from the Type 1 days - and basically for the PostScript Name. |
Is the 31-char limit just for the postscript name? |
No. That is for the Word font menu (and other MS apps). When LibreOffice recently added variable font support for named instances, I immediately tested Bahnschrift and it did show all of the instances, but they did have some sort of abbreviation applied (which is not in the font). For compatibility with old PostScript printers/interpreters it is actually 29 characters (eek!). The FontLab 7 Manual still recommends 31 and 29. |
<rant> Honestly, I don't think Adobe is much better, though they are also major font technology leaders. I don't care about ancient PostScript interpreters: it's not Adobe's fault that they're still hanging around. But their rollout of VF support in the Creative Suite was very rocky. Also, Junicode has detailed descriptions of the cvNN features (parallel to the names of the ssNN features) ready to go, and it's all commented out because a bug in the Creative Suite disables all OpenType features if cvNN names are present. I've pointed this out to them, but they're too busy building AI into their apps (to enable little Johnny to better steal copyrighted material) to bother with fixing their broken font handling. Oh well, I'll figure out how to compress the names. In the worst case, I think I only have to shorten by some seven characters. |
Yeah, the MS font handling is pretty dismal. I was hoping the recent "new" font list interface would make things better, it did just a little. One potential bright spot - apparently Word in Office for the Mac uses the STAT table for the font selection interface. Maybe they will also bring the OpenType feature support into this century. We can dream... Re: Adobe - it does kind of amaze me how much they do ####-up when it comes to typography stuff. As Rosanne-Rosannadana would say, "it's always somethin'." |
Thanks for reminding me of Roseanne Roseannadanna, one of the funniest characters ever created, by one of the funniest human beings who ever walked this sad old planet. I'm old enough to have seen her when she first joined the SNL cast, and to have mourned her when she passed. I want to temper my rant with a shout-out to whatever divisions of MS run this brilliant site and supply the brilliant Visual Studio Code, which I use every day. The MS of today is not the MS of thirty years ago—maybe there's even hope for MS Office, some day in the distant future. |
Try out version 2.000beta2 (just posted), in which I have shortened several style name elements:
That makes the longest style name (I think) 29 characters (Junicode smCond smbold Italic), which should ease the Windows problems quite a bit. Some of the file names are now different, so when you install, you must uninstall the old version first; otherwise you'll have old files hanging around and making your life difficult. |
Thanks for 2.000beta2. I tried this again, but unfortunately I'm getting the same results when exported to pdf. Again, everything looks good in Word (pdf results below). I should also add that SemiExpanded Bold and Expanded Bold both apply italics as well, but the italics can then be removed in the usual way for local formatting in Word (Ctrl+i). |
I doubt that this will fix the problem, but do try version 2.000beta3, which fixes some style linking/name table issues, especially in the italic faces. |
@ischaap The scrambled text looks like font cache corruption, |
No problem! -- here you are. |
Great. Thanks. Will save me some time. |
The PDF output looks good to me. So you may have some font cache corruption and/or duplicate font files in your Fonts folders. When font files are locked, and you update the fonts, you may end up with duplicate font files, because Windows installs the updated fonts by adding a number suffix to the file name. Lots of applications may lock the font files, so shut down applications before updating the fonts (like Word, browsers, etc.). Clean-up... Always Install for all users Shut everything down, do the clean-up, and restart your computer (and it should clean-up the font cache itself), install the fonts, and check the PDF output again. |
@kenmcd, thank you very much for your detailed instructions. I followed them and did discover some rogue fonts lurking in the user fonts folder, which I cleaned up. But I couldn't find any remaining Junicode files in either folder. I did make sure that hidden objects were visible just in case. Then I restarted in the hopes that clearing the font cache might help, but no luck. The pdf outut is the same for me, with the five lines of gibberish. I did notice earlier on during the Junicode beta (after Dr Baker announced that the italic had caught up with the roman -- I think that was v. 1.063 or 1.064) that when I'd delete Junicode via the Windows font folder, it would seem to miss deleting some of the files, even though the entire family visually appeared to be deleted. But I could tell something was up because when I'd install the next build (always via 'intall for all users') I'd get a message asking to replace several of the Junicode files. After that, I realized the surest way for me to delete all Junicode files completely is not via the Windows font folder but via Settings > Personalization > Fonts, so that's what I've been doing ever since. I'm holding onto hope that there's not something completely messed up with my system and that this will work itself out in a future build -- I feel it must be encouraging that in v. 2.000beta2 I had seven lines of gibberish, but in v. 2.000beta3 only five, hahaha! On the other hand maybe it doesn't bode well for me that you could get a clean pdf without gibberish. Well, maybe something I've said here will suggest some other action I can take (?). |
You need to be able to look at the actual files - not what Windows shows you through the Font Manager, etc. because that is showing you what is installed per the registry which is not the same as the files present on the folder. I use a file management application called XYplorer and just leave one tab open to the Windows Fonts folder at all times. The free open source 7-Zip application is also a file manager. As you mentioned above, the messages asking if you want to replace some font files definitely means you are not seeing all the files that are actually there. |
Update on this issue -- I resubbed to InDesign and when I export to pdf from InDesign, this is my pdf result: So it would seem the gibberish italics must be a Word for 365 issue? Or something about the way Word for 365 is interacting with Adobe. That said, @kenmcd, I am interested in your last post, but I'm not sure I understand what you're saying. I have 7-zip, but how can I use it to see the contents of the Windows Font folder or the User Font folder? Just zip the apparently empty folders? When I tried to zip C:\Windows\Fonts, I got this error message: I was able to zip the User Fonts Folder, but the zip folder was empty. |
Those do not look right. The weights are not correct. Look at the Expanded fonts, etc. I plan on testing Junicode 2 in ID, but will probably not get to it today.
Kinda surprised by this. If you do not have a Local Account, you can make one, and give it Administrator rights. You can also try running 7-Zip as Administrator. I open 7-Zip and use its file browsing features to go to the Windows Fonts folder. Hmmm... I may have set my 7-Zip to automatically Run as Administrator. We'll get you there yet. :-) |
@kenmcd: Have you tried the variable version in InDesign yet? I'm wondering if you'll have the same problems I'm having, i.e. things are fine if you pick an instance from the style menu, but problems start if you use the sliders. |
No. I meant to get to it today. What version of InDesign to you have on your Mac? I installed the latest release of Office 2021/0219 in that VM yesterday trying to get the new font menu - but still not there. Apparently still only in O365. |
I have InDesign 18.2.1, running on Ventura 13.4.1 on M1. I have made further changes since 2.000beta4. Maybe I should build beta5 before tomorrow. |
Ah, now I get it, thanks @kenmcd. I followed your instructions and I did indeed find some Junicode files in C:\Windows\Fonts with numerical suffixes (none in the user fonts folder though). I cleaned up the ones in the Windows fonts folder as instructed, restarted and reinstalled, and this is what I've got now, which I think looks good: But unfortunately, having done this, a new pdf export from Word still has a few lines of gibberish italics: Re: the pdf output from InDesign I posted yesterday, do the weights really look wrong? Could it just be that I grouped the fonts by width instead of by weight? The differences in line-length are less dramatic that way, and maybe your eye was anticipating the more dramatic grouping by weight. Compare these two pdfs from InDesign below. Both were composed just now subsequently to cleaning up with 7-zip, and both were composed directly in InDesign to eliminate the MS Word factor. This first one is grouped by width, same as the one I posted yesterday: This second one is grouped by weight, and so looks more dramatic: To my eye the weights and widths look right in both examples, the method of grouping in each being taken into account, but maybe you're seeing something I'm not! Please let me know what you think, but in any event, thank you @kenmcd for your continued help and patience. |
Those images still do not look right to me.
That is quite odd. The Windows registry font entries can also get messed-up, but I would not expect a corruption like this - that is usually a cache issue. But... it could be. |
Sounds good to me. |
I've posted 2.000beta5. I'll be very interested in hearing how it behaves for you. |
My instance test in InDesign looks okay (static version: the variable font crashes ID). I attach PDF for comparison. |
Found I was several versions of InDesign behind, updated to 18.5. It didn't change anything. Discovered an anomaly, that the SemiBold instance was sometimes Smbold, sometimes SmBold. Corrected that, which was worth doing, but it didn't help the InDesign crashes. I've opened an issue for InDesign crashes. |
Sure thing -- both images from yesterday were taken from the attached. Quick brown fox 2.000b4 - InDesign.pdf (Edited to add: looking at the instance test @psb1558 posted this morning, I do now see the problem with my samples from yesterday, especially in the semibold italics and the bold italics.)
Is what you had in mind something like the instructions here? I.e. stop font cache services, disable Windows Presentation Foundation Font Cache 3.0.0.0 etc., etc.? If so, I'll give it a try. |
I do not see a beta5 tag: So I will download the full repo. |
All looks fine. |
Yes. Those instructions look OK. And regarding their "Way 2" - I have not seen that tool before - have to play with that ... later. |
Thanks very much for taking a look. I was starting to doubt myself! To update further, I followed the procedure for manually clearing the font cache. My services only included Windows Font Cache and didn't have Windows Presentation Foundation Font Cache 3.0.0.0, but I followed the instructions otherwise and all seemed to go all right. Utimately no change in exporting from Word to pdf, though -- still some italic gibberish. Could the absence of the Windows Presentation Foundation Font Cache 3.0.0.0 service -- and hence no FontCache3.0.0.0.dat file to delete -- be the ultimate problem? At any rate, next I tried HighLogic MainType. It found one registry issue and a handful of corrupt fonts, which I fixed, but nothing specific to Junicode. This yielded no change in exporting from Word to pdf either. So, current status in v. 2.000beta5:
|
Very strange.
That is kinda strange. |
I'm finding that at medium weight and regular spacing, italic and boldface text isn't exporting correctly from MS Word to pdf. Italics produce gibberish, while boldface text appears unbolded.
Example text in Word:
Same text exported to pdf:
The result is the same whether exporting from within Word, converting within File Explorer, or converting within Adobe Acrobat.
Meanwhile things look fine exporting to pdf at, for example, light weight/regular spacing. Here's the pdf output:
What caught my eye is that, after installing all of the Junicode Two Beta fonts (38 plus the one italic with hinting = 39), some of the weight and spacing combinations seem to be missing in Word's font drop-down (and note that SemiExpanded is listed twice, once in roman and once in italics):
To try to understand which weight/spacing combinations are unavailable in the Word font drop-down, I made the little table below. Combinations that aren't accessible but that I presume should be are entered as 'n/a'. It also shows that the Regular-weight/Regular-spaced italic isn't working, and that using Word's bold local styling (Ctrl+B) only approximates (as shown in parentheses) what I imagine is the intended Bold-weight/Regular-spaced roman and italic, which don't seem to be available. I'm guessing this is why the medium-weight boldface didn't export to pdf in the example above but the light-weight boldface did (assuming that applying boldface local styling to the Light-weight/Regular-spacing in Word applies the Junicode Medium-weight/Regular-spacing, which is available, while applying boldface local styling to the Medium-weight/Regular-spacing applies the Junicode Bold-weight/Regular-spacing, which is not).
Another thing I think the table shows is that what's labelled in the drop-down as 'Junicode Two Beta Expanded' (which I take to mean Regular-weight/Expanded-spacing) appears actually to be applying an Expanded spacing in either Semibold or Bold, but I can't quite tell which. Finally, it also seems to me that what's labelled 'Junicode Two Beta SemiCondensed' in the font drop-down (ostensibly Regular-weight/Semicondensed-spacing) might actually be applying SemiCondensed Medium.
Sorry that this isn't very methodically tested or reported -- I would have liked to test in InDesign as well, where there's more control, but my sub is lapsed at the moment. It occurs to me too that some of these items might be known issues as this point in the beta -- but anyway, I hope reporting them is helpful nevertheless.
The text was updated successfully, but these errors were encountered: