UFT throws error and AUT is closed when trying to change FONT Style
Question ID: 107818

If I have UFT and my AUT open, if I want to change the FONT Style in Options > Text Editor > Fonts & Colors, then my AUT crashes/closes and UFT shows the following error:

Exception of type: System.ArgumentException. Source: System.Drawing. Occured in Void CreateNativeFont() method
Exception message is: Font ‘Vidaloka’ does not support style ‘Regular’.
Exception trace is: at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(FontFamily family, Single emSize)
at HP.UFT.ConfigurationUI.FontDescriptor.DetectMonospaced(FontFamily fontFamily)
at HP.UFT.ConfigurationUI.FontSelectionControl.PrepareFontList(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

SharpDevelop Version :
.NET Version : 4.0.30319.1
OS Version : Microsoft Windows NT 6.1.7600.0
Current culture : English (United States) (en-US)
Working Set Memory : 213800kb
GC Heap Memory : 19549kb

An unexpected error occurred.

Click 'OK' to close this application. Click 'Details' to display technical details
on this error which may help you solve the problem, or can be used when
contacting customer support.

—- Post-error application state information:
Installed 3rd party AddIns: [${res:Addin.UFT.File.Dialog.UFT.Only}], [ActiveScreenPane], [QTP DataTable Addin], [QTP Debugger addin based on UT Debugger], [QTP FileDialog], [HP QTP Property Tabs], [ALM Storage], [HP Basic Extensibility], [HP Designer UI Extensibility], [HP SOAReplayAPI Extensibility], [${res:HP_Async}], [${res:HP_Checkpoints}], [${res:STDataProvider_HP_Data_Providers}], [${res:BasicActivity_HP_Basic_Activities}], [${res:HP_BPT_Integration}], [HP CSharp Translation Layer], [${res:HP_Database_Activities}], [${res:HP_Standard_Import_Technologies}], [HP Framework Upgraders], [${res:HP_FTP_Activities}], [ST Debugger addin based on UT Debugger], [${res:HTTP_Activity}], [${res:HP_Receiver_Activity}], [Run Step Pad], [${res:HP_Java_Call_Addin}], [${res:HP_JMS_Technology}], [${res:HP_LoadRunner_Integration}], [${res:HP_MQ_Activities}], [${res:PropertySheet_HP_Basic_Property_Sheet}], [${res:HP_Rest_Technology}], [${res:HP_UFT_STM}], [${res:HP_Service_Test_runner}], [HP Basic Framework], [Toolbox Default Presenter], [HP Toolbox UI Extensibility], [${res:HP_Transform_JSON_Addin}], [${res:HP_Transform_Xml_Addin}], [${res:HP_QTP_test_runner}], [${res:HP_Validate_Xml_Addin}], [VTD Extensibility], [${res:HP_Run_Vugen_Addin}], [${res:Wait_Activity}], [${res:WSImportTechnology_HP_Standard_Import_Technologies}], [HP Shell Services], [${res:Addin.UFT.Data.Explorer}], [UTT Configuration UI], [Debug Pad Wrapper Extension addin for UTT], [UTT Debug Basic implementation addin for UTT], [UTT File Dialog], [${res:Addin.UFT.File.System}], [${res:Addin.UFT.ALM}], [UTT Connection Addin 11.50.0

Marked as spam
Posted by (Questions: 424, Answers: 91)
Asked on July 31, 2017 3:37 am
Answers (1)
Private answer

It looks like UFT isn't able to support different styles for that problem font (''Vidaloka'')...or that font simply doesn't have any styles associated with it (bold, regular, etc.) and is throwing UFT off. You'll most likely just need to uninstall it from your system (Windows Control Panel > Fonts > Select your font (e.g. 'Vidaloka') > Delete. See if this helps.

Marked as spam
Posted by (Questions: 0, Answers: 771)
Answered on July 31, 2017 1:24 pm
Thanks a bunch. I uninstalled the font in question, and am now able to change my FONT Style without issue.
( at July 31, 2017 1:24 pm)

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top