Displaying unicode filenames correctly

When I delete prefs.oxc from /dopusdata/ConfigFiles, the issue goes away.

O.k. so now I just deleted this part from prefs.oxc:

	<files>Palatino Linotype/-27,400,0,0,0,0,18,200,10</files>
	<status>Palatino Linotype/-24,400,0,0,0,0,18,200,9</status>
	<header>Palatino Linotype/-24,400,0,0,0,1,0,200,9</header>
	<foldertabs>Vezus Serif Regular/-21,400,0,0,0,1,0,200,8</foldertabs>
	<fdb>Palatino Linotype/-24,400,0,0,0,1,0,200,9</fdb>
	<log>Courier New/-24,400,0,0,0,1,0,200,9</log>
	<groups>Palatino Linotype/-29,400,0,0,0,1,0,200,11</groups>
	<panelnc>Palatino Linotype/-24,400,0,0,0,1,0,200,9</panelnc>
	<jobsbar>Segoe UI/-24,400,0,0,0,1,0,200,9</jobsbar>
	<metapane>Palatino Linotype/-24,400,0,0,0,1,0,200,9</metapane>
	<renamemacro>Lucida Console/-21,400,0,0,0,1,0,200,8</renamemacro>
	<infotips>Segoe UI/-24,400,0,0,0,1,0,200,9</infotips>

Issue is still gone!

So compare that to your config on the other machine. If they're different then you know where the issue is. If they're the same then you know it's a font that must be different.

1 Like

Ok, the only difference was in this line:

Palatino Linotype/-27,400,0,0,0,0,18,200,10

That's when I deleted the line on the PC, and then set the font back to Palatino Linotype. Now the line is as follows:

Palatino Linotype/-27,400,0,0,0,0,0,200,10

And the issue is still gone!

I wonder what these numbers mean, especially the 18 which apparently caused the issue.

It's the lfPitchAndFamily member of LOGFONTW (wingdi.h) - Win32 apps | Microsoft Learn -- 18 means FF_ROMAN|VARIABLE_PITCH, while 0 means nothing is specified at all.

Why that was different or causes Windows to render the font differently, I don't know.

FF_ROMAN could exclude non-roman characters, perhaps.

Recent versions of Opus and Windows on my machine set it to 0, but maybe old versions did something different and one of the configs dates back to then.

1 Like PitchFont Enumeration

DEFAULT_PITCH: The default pitch, which is implementation-dependent.

FIXED_PITCH: A fixed pitch, which means that all the characters in the font occupy the same width when output in a string.

VARIABLE_PITCH: A variable pitch, which means that the characters in the font occupy widths that are proportional to the actual widths of the glyphs when output in a string. For example, the "i" and space characters usually have much smaller widths than a "W" or "O" character.