Commit 21589566 authored by Maxime Perrotin's avatar Maxime Perrotin

Use monospace font for the ASN.1 display

parent 4b174b6f
......@@ -26,6 +26,10 @@
<file>fonts/Ubuntu-BI.ttf</file>
<file>fonts/Ubuntu-R.ttf</file>
<file>fonts/Ubuntu-RI.ttf</file>
<file>fonts/UbuntuMono-B.ttf</file>
<file>fonts/UbuntuMono-BI.ttf</file>
<file>fonts/UbuntuMono-R.ttf</file>
<file>fonts/UbuntuMono-RI.ttf</file>
<file>misc/lander.mp3</file>
<file>misc/pretty_print_asn1.stg</file>
</qresource>
......
This diff is collapsed.
......@@ -2365,6 +2365,7 @@ class OG_MainWindow(QtGui.QMainWindow, object):
return
html_content = html_file.read()
self.asn1_browser.setHtml(html_content)
self.asn1_browser.setFont(QtGui.QFont('UbuntuMono', 12))
# Update the data dictionary
item = self.datadict.topLevelItem(0)
......@@ -2755,6 +2756,10 @@ def gui(options):
font_database.addApplicationFont(':fonts/Ubuntu-R.ttf')
font_database.addApplicationFont(':fonts/Ubuntu-B.ttf')
font_database.addApplicationFont(':fonts/Ubuntu-BI.ttf')
font_database.addApplicationFont(':fonts/UbuntuMono-RI.ttf')
font_database.addApplicationFont(':fonts/UbuntuMono-R.ttf')
font_database.addApplicationFont(':fonts/UbuntuMono-B.ttf')
font_database.addApplicationFont(':fonts/UbuntuMono-BI.ttf')
app.setFont(QtGui.QFont('Ubuntu', 10))
# Initialize the clipboard
......
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2016-11-13 17:50:52
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2016-11-29 10:37:54
import sys
from antlr3 import *
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment