Created attachment 181534 [details] Python + HTML code Python: import wx import wx.webview app = wx.App(redirect=False) frame = wx.webview.WebBrowserShell('wxWebKit Test') frame.Show() app.MainLoop() HTML: <!DOCTYPE HTML> <html> <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> <style type="text/css"> // the name of the font or its existence does not matter @font-face {font-family: xxx; src: url('xxx.ttf');} </style> </head> <body> <input type=text style="font-family:xxx;" value="This is xxx Font." /> </body> </html>
The HTML can actually be made shorter - only jQuery is needed: <!DOCTYPE HTML> <html> <head> <style type="text/css"> @font-face {font-family: xxx; src: url('xxx.ttf');} </style> </head> <body> <input type=text style="font-family:xxx;" value="This is xxx Font." /> </body> </html>
Sorry - too enthusiastic with my deletions! <!DOCTYPE HTML> <html> <head> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <style type="text/css"> // the name of the font or its existence does not matter @font-face {font-family: xxx; src: url('xxx.ttf');} </style> </head> <body> <input type=text style="font-family:xxx;" value="This is xxx Font." /> </body> </html>
Mass closing remaining WebKit wx bugs, as this port is long gone.