Skip to content

Commit

Permalink
Changed Messages_Window.xml to load the font and then check it
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 15, 2010
1 parent bfaea92 commit 0f2d70c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/Messages_Window.xml
Expand Up @@ -269,7 +269,13 @@ win = GetPluginID () -- get a unique name
-- make the window
WindowCreate (win, 0, 0, 1, 1, WINDOW_POSITION, 0, 0) -- create window
fonts = utils.getfontfamilies ()
if not fonts.Dina then
AddFont (GetInfo (66) .. "\\Dina.fon")
end -- if Dina not installed
-- grab a font
WindowFont (win, "f", FONT_NAME, FONT_SIZE) -- define font
WindowFont (win, "fb", FONT_NAME, FONT_SIZE, true) -- define font
Expand Down Expand Up @@ -297,12 +303,6 @@ WindowCreate (win,
-- add the drag handler so they can move the window around
movewindow.add_drag_handler (win, 0, 0, 0, font_height + 2)
fonts = utils.getfontfamilies ()
if not fonts.Dina then
AddFont (GetInfo (66) .. "\\Dina.fon")
end -- if Dina not installed
]]>
</script>
Expand Down

0 comments on commit 0f2d70c

Please sign in to comment.