Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
This is the long way to get around a stupid problem.
Thanks I'm familiar with the solution.
problem with it is that it applies to Outlook and not all Office.
I'm talking about a system-wide solution.
The correct system wide solution is Office to comply to registry FontSubstitution values
However, until MS fixes their bugs the following is a cleaner solution than going through all possible menus.
e.g. make Windows think that Times New Roman is Aptos
(Python)
from fontTools.ttLib import TTFont
font = TTFont(r'c:\temp\times.ttf')
def ChangeToAptos(s):
s = "Aptos" if 'Times New Roman' in s else s
s = "Aptos" if 'TimesNewRoman' in s else s
return s
for i,r in enumerate(font['name'].names):
try:
s = r.string.decode('utf-16-be')
s = ChangeToAptos(s)
r.string = s.encode('utf-16-be')
except:
try:
s = r.string.decode('utf-8')
s = ChangeToAptos(s)
r.string = s.encode('utf-8')
except:
try:
s = r.string
s = ChangeToAptos(s)
r.string = s
except:
pass
font.save(r'c:\temp\aptos.ttf')
