sa3eedDev / U.G.L.Y

Other
1 stars 1 forks source link

[Feature Request] Italic text is simply slanted #1

Open sa3eedDev opened 4 years ago

sa3eedDev commented 4 years ago

Windows 10, Telegram 1.8.9, italic text in messages looks like this:

image

Probably because in tdesktop/Telegram/Resources/fonts/ there are no italic fonts. Could these be included?

Edit:

  1. Begin typing a message
  2. Surround message with "__" on each side
  3. Send message

Expected Behavior: Selected text is shown in italics

Actual behaviour Selected text is normal text, just slanted

Configuration Operating system: windows 10

alexhatcs commented 4 years ago

Added italic .ttf file to /Resources/fonts of the same OpenSans font style. Still continuing to look which files (there are a LOT) need to be changed in order to change the font style from slanted normal font as italics, to implementing this new font library. Edit: Could possibly be in Telegram/SourceFiles/ui/twidget.cpp to "LoadCustomFont"

alexhatcs commented 4 years ago

Lots of font information and validation is located in twidget.cpp