qtwebengine

Google Fonts (ttf) being ignored in QtWebEngine when using @font face

点点圈 提交于 2020-07-01 07:27:51
问题 I am trying to load a google font to my pyqt5 QtWebEngine app. The app loads a local html file with css stying. I used font face to load the ttf file as below: @font-face { font-family: "Work Sans"; src: url("C:\Users\Godwin\TIAT\fonts\WorkSans-Regular.ttf") format('truetype'); } body { font-family: "Work Sans"; background-color: #eef0f2; } the font seem to be ignored when loading the html file. Can someone please assist. Edit strong text Here is my full html @font-face { font-family: Work

Google Fonts (ttf) being ignored in QtWebEngine when using @font face

删除回忆录丶 提交于 2020-07-01 07:26:55
问题 I am trying to load a google font to my pyqt5 QtWebEngine app. The app loads a local html file with css stying. I used font face to load the ttf file as below: @font-face { font-family: "Work Sans"; src: url("C:\Users\Godwin\TIAT\fonts\WorkSans-Regular.ttf") format('truetype'); } body { font-family: "Work Sans"; background-color: #eef0f2; } the font seem to be ignored when loading the html file. Can someone please assist. Edit strong text Here is my full html @font-face { font-family: Work

Remove Logs from PyQt5 Browser on Console

爷,独闯天下 提交于 2020-06-08 13:04:57
问题 I have a PyQt5 application Virtual Desktop that has a built-in browser. When I use the browser, I get JS errors from the browser similar to how Chrome puts JS and HTML errors in the "Web Inspector". How do I get rid of those errors. To replicate the errors, download Virtual Desktop and install PyQt from PYPI. You'll need to run main.py , select a QStyle, and click on the Browser (next to the power button). Go to any website (google for example) and switch back to your console. You will notice

Remove Logs from PyQt5 Browser on Console

一个人想着一个人 提交于 2020-06-08 13:04:12
问题 I have a PyQt5 application Virtual Desktop that has a built-in browser. When I use the browser, I get JS errors from the browser similar to how Chrome puts JS and HTML errors in the "Web Inspector". How do I get rid of those errors. To replicate the errors, download Virtual Desktop and install PyQt from PYPI. You'll need to run main.py , select a QStyle, and click on the Browser (next to the power button). Go to any website (google for example) and switch back to your console. You will notice