#StackBounty: #terminal #fonts #xorg #unicode #true-type-fonts Different line spacing depending on font encoding

Bounty: 50

Historically, I’ve been using Monotype Courier New as my XTerm font (it displays well both Cyrillic characters and box-drawing characters). When migrating from legacy KOI8-R to UTF-8 locale, I’ve noticed a change in the inter-line spacing (or leading), which made Courier New no longer suitable for terminals.

Here’s how my XTerm used to look in ru_RU.KOI8-R locale (12pt Courier New):

enter image description here

Here’s how it looks now (ru_RU.UTF-8, 12pt again, character width is the same, but note the increased leading, vertical box-drawing charaters form a double “dashed” line):

enter image description here

Apparently, XTerm is not the only application affected. Basically, all programs using Core X11 Fonts exhibit the same behaviour. Take a look at xfontsel displaying different encodings of the same font:

KOI8-R:

enter image description here

ISO 10646-1 (which stands for Unicode):

enter image description here

Interestingly, Courier New seems to be the only monospaced font affected. Other fonts, like -misc-freemono-*, have the same leading regardless of the encoding.

Now, the question:

Is there any way I can enforce the particular leading for a particular font? Should I look into the FreeType library? Or Xft? Any ideas are appreciated.


Get this bounty!!!

#StackBounty: #fonts #spacing #luatex How to apply a LuaLaTeX function to only a specific font?

Bounty: 50

In the italic font I am using, the apostrophe appears too far right in its bounding box, and therefore a space between an apostrophe and a glyph appears smaller than a space between two glyphs. I adapted code from Kerning against word space in LuaTeX in order to increase this space. However, the code applies to all fonts used in the document, but I want it to apply to only the italic font. Is there a way to do this?

Current output:

The same sentence typeset in roman and italic, with extra space after the apostrophes

Desired output:

The same sentence typeset in roman and italic, with only the italic version having extra space after the apostrophes

(the spaces have been exaggerated for purposes of demonstration)

MWE:

documentclass{article}
usepackage{fontspec}
directlua{
  function kernspace(head)
    for space in node.traverse_id(node.id('glue'), head) do
      if space.subtype == 13 then
        local prev = node.prev(space)
        local next = node.next(space)
        if prev.id == 29 and next.id == 29 then
          if prev.char == 8217 then
            space.width = space.width + 1000000
          end
        end
      end
    end
    return true
  end
  luatexbase.add_to_callback("pre_linebreak_filter", kernspace, "kernspace");
}
setmainfont{times.ttf}[
  ItalicFont = timesi.ttf
]
begin{document}
`It's time to rock 'n' roll,' he said. par
textit{`It's time to rock 'n' roll,' he said.}
end{document}


Get this bounty!!!

#StackBounty: #fonts #siunitx Siunitx font weight detection with Roboto

Bounty: 50

When loading the roboto pakage with light font as default, temporarily switching to a different font weight causes siunitx to fail to detect the correct font.

documentclass{article}
usepackage[light,medium]{roboto}
providecommand*lseries{fontseries{l}selectfont}
usepackage{siunitx}
sisetup{detect-all=true}
begin{document}
sffamily
1,mV SI{1}{millivolt}

fontseries{m}selectfont%
1,mV SI{1}{millivolt}
end{document}

Wrong font weight.

There seems to be some trouble of siunitx detecting font weights, when additional weights come into play, like here or here. In this case, however, I cannot understand the issue, since I change back to the default m weight that siunitx should understand. What’s the issue here?


Get this bounty!!!

#StackBounty: #fonts #orientation How to make font rendering auto-adjust to monitor orientation changing

Bounty: 50

I encounter what appears like bad anti-aliasing or something similar, in the built in PDF viewer and in browsers alike, when switching to portrait mode. All texts just appear oddly fuzzy. Is there a more integrated way of fixing this up so that whenever you change monitor orientation, fonts appear clearly?

I have seen solutions (or should I say partial solutions) mentioned via this question, but would like to be able to switch the monitor orientation now and then depending on the task at hand, without running a multitude of setup commands every time.

I assume this requires integration with the setup screen where display orientation is controlled (Settings → Devices → Displays) in the default Settings app.

I know this might be more like a missing feature request than something that can be done right now without forking the source, but just in case …

If there’s a way, thanks for letting me know!


Get this bounty!!!

#StackBounty: #windows-10 #command-line #fonts Can't Delete Font Files #2

Bounty: 50

Background (skip if TLDR):

I installed via the internet (possibly shady) download Command & Conquer The Last Decade — I OWN the originals but have no cd drive, meaning I have the serials and everything. I performed a few virus scans and all appeared good. After discovering that some of the old Windows 95/98 games didn’t run well on Windows 10, I decided to install a fan patch that should fix it from a trusted website — This didn’t work either. So I decided to uninstall everything. The uninstall for the possibly-shady-internet-download was successful, but the patch files seemed to remain and there was no entry in either of windows-10’s
add-remove-program (main & Control Panel). When I tried to manually delete the files it deleted everything except for 2 font files .ttf‘s and all the folder-heirarchy’s above it.

Problem:
I successully deleted one of two of the font files but constantly got the same message / popup on both of them on all my attempts.

Attempts:
Searched Google, and open first 20 tabs and do everything! (keep in mind my user-acct is marked as an admin)

  • My Windows Security setting for Ransomeware protection already has “controlled folder access” marked as off.
  • I tried cipher '/u /n /h > %UserProfile%DesktopMyEncryptedFiles.txt & looking under the properties of the files to see if they were encrypted — both the output file and the properties said the files were NOT encrypted .
  • Right-Click and delete. (fail; I received a popup saying the file was in use)
  • Opening the windows-10 resource manager and searching for the folder the .ttf‘s were located in and closing out the process that was using the files explorer.exe than attempting to delete via windows-file-manager, and then via admin-cmd-prompt.
  • I attempted via cmd prompt the takeown cmd on the files — it was a success! Upon viewing the file properties, security, advanced … it does indeed say I am the owner.
  • I attempted all the cmd-prompt del modifiers such as /s /f, etc. I tried a few commands for deleting directories and their modifiers such as rd
  • I attempted to rename the 2 files followed by the deletion of all previous methods listed. Rename (success), Deletion (failure)
  • I attempted to move the 2 files to the desktop and to delete the directory they were previously in (success!), followed by attempting to delete the files I renamed (failure) ((hence fourth APM ; means all previous methods))
  • I restarted the computer and tried APM
  • I looked a the Window-10 backups and saw there was one lonely entry that listed “Command & Conquer the last decade” & the correct install date. It didn’t seem to have any effect on all the changes I’d made and it remained uninstalled except for the 2 renamed font files on my desktop. (update, I saw restore that pre-dated this, and performed that restore — the text file is still on my desktop and un-deletable.)
  • I downloaded the free version of CCleaner and marked the 2 font files as things to be deleted on the next “sweep” — then performed a manual sweep. This failed.
  • I attempted to find the font files via reg-edit as suggested by “Can’t delete Font files” superuser question method — there were no entries for the offending fonts.
  • I unlocked the “secret admin account” via admin-cmd-prompt via net user administrator /active:yes Upon switching to that account for some reason I was able to successfully delete one of the 2 font files. The remaining file gives me a popup now that no longer says it is in use, instead it saysenter image description here
  • I tried safety-mode followed by APM — and alas it gave me the same popup about permissions.

Outside of that, I am out of ideas on how to delete the remaining file. The popup above lists the name of the laptop itself LAPTOP-LTTT2E6D followed by a username (me). But I get no windows popup asking me to put in my credentials.


Get this bounty!!!

#StackBounty: #windows-10 #command-line #fonts Can't Delete Font Files #2

Bounty: 50

Background (skip if TLDR):

I installed via the internet (possibly shady) download Command & Conquer The Last Decade — I OWN the originals but have no cd drive, meaning I have the serials and everything. I performed a few virus scans and all appeared good. After discovering that some of the old Windows 95/98 games didn’t run well on Windows 10, I decided to install a fan patch that should fix it from a trusted website — This didn’t work either. So I decided to uninstall everything. The uninstall for the possibly-shady-internet-download was successful, but the patch files seemed to remain and there was no entry in either of windows-10’s
add-remove-program (main & Control Panel). When I tried to manually delete the files it deleted everything except for 2 font files .ttf‘s and all the folder-heirarchy’s above it.

Problem:
I successully deleted one of two of the font files but constantly got the same message / popup on both of them on all my attempts.

Attempts:
Searched Google, and open first 20 tabs and do everything! (keep in mind my user-acct is marked as an admin)

  • My Windows Security setting for Ransomeware protection already has “controlled folder access” marked as off.
  • I tried cipher '/u /n /h > %UserProfile%DesktopMyEncryptedFiles.txt & looking under the properties of the files to see if they were encrypted — both the output file and the properties said the files were NOT encrypted .
  • Right-Click and delete. (fail; I received a popup saying the file was in use)
  • Opening the windows-10 resource manager and searching for the folder the .ttf‘s were located in and closing out the process that was using the files explorer.exe than attempting to delete via windows-file-manager, and then via admin-cmd-prompt.
  • I attempted via cmd prompt the takeown cmd on the files — it was a success! Upon viewing the file properties, security, advanced … it does indeed say I am the owner.
  • I attempted all the cmd-prompt del modifiers such as /s /f, etc. I tried a few commands for deleting directories and their modifiers such as rd
  • I attempted to rename the 2 files followed by the deletion of all previous methods listed. Rename (success), Deletion (failure)
  • I attempted to move the 2 files to the desktop and to delete the directory they were previously in (success!), followed by attempting to delete the files I renamed (failure) ((hence fourth APM ; means all previous methods))
  • I restarted the computer and tried APM
  • I looked a the Window-10 backups and saw there was one lonely entry that listed “Command & Conquer the last decade” & the correct install date. It didn’t seem to have any effect on all the changes I’d made and it remained uninstalled except for the 2 renamed font files on my desktop. (update, I saw restore that pre-dated this, and performed that restore — the text file is still on my desktop and un-deletable.)
  • I downloaded the free version of CCleaner and marked the 2 font files as things to be deleted on the next “sweep” — then performed a manual sweep. This failed.
  • I attempted to find the font files via reg-edit as suggested by “Can’t delete Font files” superuser question method — there were no entries for the offending fonts.
  • I unlocked the “secret admin account” via admin-cmd-prompt via net user administrator /active:yes Upon switching to that account for some reason I was able to successfully delete one of the 2 font files. The remaining file gives me a popup now that no longer says it is in use, instead it saysenter image description here
  • I tried safety-mode followed by APM — and alas it gave me the same popup about permissions.

Outside of that, I am out of ideas on how to delete the remaining file. The popup above lists the name of the laptop itself LAPTOP-LTTT2E6D followed by a username (me). But I get no windows popup asking me to put in my credentials.


Get this bounty!!!

#StackBounty: #windows-10 #fonts #unicode Windows 10: Incomplete Display Of A Font's Characters

Bounty: 50

  • by default, windows 10 comes with the segoe ui emoji font
  • this font is the only default font that has the following 4 unicode characters:
    • 🛷 (x1f6f7)
    • 🛸 (x1f6f8)
    • 🛹 (x1f6f9)
    • 🛺 (x1f6fa)
  • and i haven’t installed any additional fonts that have any of those characters

  • if:
    • an app or the windows desktop uses this font
  • then:
    • the app or windows desktop should be able to display all 4 of those characters
  • in contrast, if:
    • an app or the windows desktop does not use this font
  • then:
    • the app or windows desktop should not be able to display any of those 4 characters
  • however, this isn’t what i experience

  • run dialog, notepad, and ultra edit, will each display:
    • 🛷 (x1f6f7)
    • 🛸 (x1f6f8)
  • but they won’t display:
    • 🛹 (x1f6f9)
    • 🛺 (x1f6fa)
  • in contrast, windows search bar will display all 4 of the characters

image 1
image 2
image 3
image 4

  • on a side note, i’m using a recently updated, stable version of windows 10:
    • build 18362.535 (1903/May 2019 Update)

? what’s the cause of this bizarre behavior


Get this bounty!!!

#StackBounty: #windows-10 #fonts #unicode Windows 10: Incomplete Display Of A Font's Characters

Bounty: 50

  • by default, windows 10 comes with the segoe ui emoji font
  • this font is the only default font that has the following 4 unicode characters:
    • 🛷 (x1f6f7)
    • 🛸 (x1f6f8)
    • 🛹 (x1f6f9)
    • 🛺 (x1f6fa)
  • and i haven’t installed any additional fonts that have any of those characters

  • if:
    • an app or the windows desktop uses this font
  • then:
    • the app or windows desktop should be able to display all 4 of those characters
  • in contrast, if:
    • an app or the windows desktop does not use this font
  • then:
    • the app or windows desktop should not be able to display any of those 4 characters
  • however, this isn’t what i experience

  • run dialog, notepad, and ultra edit, will each display:
    • 🛷 (x1f6f7)
    • 🛸 (x1f6f8)
  • but they won’t display:
    • 🛹 (x1f6f9)
    • 🛺 (x1f6fa)
  • in contrast, windows search bar will display all 4 of the characters

image 1
image 2
image 3
image 4

  • on a side note, i’m using a recently updated, stable version of windows 10:
    • build 18362.535 (1903/May 2019 Update)

? what’s the cause of this bizarre behavior


Get this bounty!!!