Code: Select all
gui, add, edit, h0 w0 ;removes annoying noise when pressing a button with the gui selected
gui, font, s10
gui +Border +lastfound
gui, color, EBAE02
WinSet, TransColor, EBAE02
guicontrolget, maindoc, pos
Guiheight := A_screenheight / 4
Guiwidth := A_screenwidth / 6
Gui, Add, ActiveX, x0 y0 w%Guiwidth% h%Guiheight% vfeaturedoc, HtmlFile
htmlpart1 := "<!DOCTYPE html><html><head><style type=text/css> html {overflow:hidden; height: 100%;} body {background:#666666; height: 100%; width: 100%; font-size:60px;}"
;htmlpart1 .= "@font-face {font-family:Test; src:url('myfont.woff'); format:('woff');}"
;htmlpart1 .= "@font-face {font-family:Test; src:url('Pictures\myfont.woff'); format:('woff');}"
htmlpart1 .= ".p{font-family:Test;}"
htmlpart2 := "</style></head><body>"
htmlpart2 .= "<P>Font Test</p>"
htmlpart2 .= "</body></html>"
html := htmlpart1 . htmlpart2
featuredoc.open()
featuredoc.write(html)
featuredoc.close()
gui, show
return