obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Issue initializing various Font Style within a Font Family

Open Jimmyson opened this issue 5 years ago • 4 comments

Platform

Operating system and version: Windows 10 Pro 1909 (Build 18363.1256) OBS Studio version: 26.1.0

Expected Behavior

Previewing and initializing correct font style within any Text layer, and the Font Selection text box.

Current Behavior

Font Preview window, Text Properties window and OBS output incorrectly displays other font styles of the chosen font family

Steps to Reproduce

Updated from response below

  1. Retrieve the font files attached
  2. Install OTF files to the Windows Font Directory (These will be the baseline)
    • Either via the Windows 10 Control Panel
    • Font Preview Window
    • Explorer Context Menu on the File
  3. Open OBS 28.0.3
  4. Create a new Text Source
  5. Select ABCSans from the first Font list
  6. Set the Font style (start with Light)
  7. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is shown here
  8. Commit the Text Source to the scene <- Issue is shown here
  9. Validate the ABCSans font is being displayed
  10. Open the Text Source Properties, and the "Select Font" window
  11. Change the Font Style to RoundedBold
  12. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is shown here
  13. Commit the Text Source to the scene <- Issue is shown here
  14. Reopen the Text Source Properties, and the "Select Font" window scene
  15. Change the Font to ABCSans CondensedBold
  16. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is resolved here
  17. Commit the Text Source to the scene
  18. Remove the Text Source and close OBS
  19. Uninstall the Font from Windows using the Windows 10 Control Panel
  20. Install the TTF file to the Windows Font Directory and repeat from Step 3. <- Issue persists with TTF variant

Notes

  • There are further font style variants with the TTF font set, allowing for more chances to test with
  • It's more likely a font issue with the internal metadata embedded in the OTF and TTF data, but worth checking why TTF is unable to select the font styles correctly, nor reveal each style under the Font list on the selection window.

https://user-images.githubusercontent.com/8276052/102956069-89a2f300-452b-11eb-9451-b400240c93d2.mp4

Additional information

Not every font with various styles experiences this. I am currently experiencing this with the ABCSans and ABCSans Serif font-family. I have tried the TTF and OTF formats, and experience the same problem. Whatever font is installed first, is the style that's fallen back upon. Sometimes, when a font is selected, it is not used when rendering into the preview or output.

The issue only happens inside OBS.

List of Font Styles for ABCSans

obs64_2020-12-22_22-15-23 obs64_2020-12-22_22-15-42 obs64_2020-12-22_22-15-51 obs64_2020-12-22_22-16-07 obs64_2020-12-22_22-16-21 obs64_2020-12-23_14-04-34

Case where ABCSans Serif has been selected, but not rendered on the Preview obs64_2020-12-23_14-29-00

Jimmyson avatar Dec 23 '20 03:12 Jimmyson

Could you please test and confirm whether this is still an issue with OBS 28.0.3?

It would also be great if you could provide very concrete reproduction steps (which font file to install in the system, which precise steps to take to reproduce).

In my tests I wasn't able to reproduce the described issue, the only issue I found was that the ABCSans Regular variant was displayed as italic, which usually happens if a font uses a slant value in its tables, but does not set the OS/2 ITALIC style variable (alas Linux, Windows, and freetype still rely on these old font tables).

PatTheMav avatar Oct 25 '22 18:10 PatTheMav

In my tests I wasn't able to reproduce the described issue

I was also unable to reproduce this in my recent tests.

RytoEX avatar Oct 25 '22 23:10 RytoEX

It has been some time since the original post. I have downloaded the latest version and reattempted the creation of the Text Source

I am still receiving the issue. I have not updated my font files since my original ticket.

Fonts were installed via the "Install" context menu option in Windows, and the Font Settings Page

image

I am currently using the TTF formatted font files. OTF and other formats exist. There is also a variant family on ABCSans called ABCSerif. I also have these fonts in TTF format any whilst they exhibit the same issue, there are also extra records in the Font List window that manage to be properly assigned.

image

image

I took the opportunity to utilize the OTF files of ABCSans, and it presented the same issue a ABCSerif, where the grouped font record failed to assign, but the individual font weights in the same list worked fine,

image

It's possible there is an issue with the Font-files themselves. There was a updated metadata content between ABCSans in TTF verses all other variants

image

I'll aim to have some detailed Reproduction Steps soon.

Jimmyson avatar Oct 26 '22 12:10 Jimmyson

Steps to Reproduce

  1. Retrieve the font files attached
  2. Install OTF files to the Windows Font Directory (These will be the baseline)
    • Either via the Windows 10 Control Panel
    • Font Preview Window
    • Explorer Context Menu on the File
  3. Open OBS 28.0.3
  4. Create a new Text Source
  5. Select ABCSans from the first Font list
  6. Set the Font style (start with Light)
  7. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is shown here
  8. Commit the Text Source to the scene <- Issue is shown here
  9. Validate the ABCSans font is being displayed
  10. Open the Text Source Properties, and the "Select Font" window
  11. Change the Font Style to RoundedBold
  12. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is shown here
  13. Commit the Text Source to the scene <- Issue is shown here
  14. Reopen the Text Source Properties, and the "Select Font" window scene
  15. Change the Font to ABCSans CondensedBold
  16. Save the selection and confirm the Font Panel matches the Preview Panel. <- Issue is resolved here
  17. Commit the Text Source to the scene
  18. Remove the Text Source and close OBS
  19. Uninstall the Font from Windows using the Windows 10 Control Panel
  20. Install the TTF file to the Windows Font Directory and repeat from Step 3. <- Issue persists with TTF variant

Notes

  • There are further font style variants with the TTF font set, allowing for more chances to test with
  • It's more likely a font issue with the internal metadata embedded in the OTF and TTF data, but worth checking why TTF is unable to select the font styles correctly, nor reveal each style under the Font list on the selection window.

Jimmyson avatar Nov 05 '22 00:11 Jimmyson