# HG changeset patch # User Jeremy Thurgood # Date 1282981041 -7200 # Node ID 40dd77f71e117c878ae287531e54cd710564c306 # Parent a0d66c0f5a8981c53998c167cd0759407c58ef76 Computer typeface for JIM. diff -r a0d66c0f5a89 -r 40dd77f71e11 Resources/fonts/chintzy.ttf Binary file Resources/fonts/chintzy.ttf has changed diff -r a0d66c0f5a89 -r 40dd77f71e11 Resources/fonts/chintzycpu.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/fonts/chintzycpu.txt Sat Aug 28 09:37:21 2010 +0200 @@ -0,0 +1,71 @@ +__________________________________ +Chintzy CPU Created by Brian Kent +ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + +Thanks for Downloading Chintzy CPU. + +-Chintzy CPU +-Chintzy CPU Shadow + +If you have any questions or comments, you can e-mail me at +aefonts[AT]frontiernet[DOT]net + +You can visit my Homepage <ĈNIGMA GAMES & FONTS> at +http://www.aenigmafonts.com/ + +____________ +!!! NOTE !!! +ŻŻŻŻŻŻŻŻŻŻŻŻ +This font has been updated! I've edited the (BRK) in the font name +to just BRK. It seems that Adobe Illustrator and web pages with CSS +don't like fonts with ( and ) in their name. + +________________ +INSTALLING FONTS +ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + There's a couple of ways to install Fonts. The 'easy' way to +install fonts is to just Unzip/place the font file [.ttf] into your +Windows\Fonts directory (I always use this method). If you're unable +to do it the 'easy' way, then try to do it this way (for Windows +95/98/NT): + +1] Unzip the Font(s) to a folder (or somewhere, just remember where +you unzipped it) on your Computer. + +2] Next, click on the START button, then select SETTINGS then +CONTROL PANEL. + +3] When the Control Panel Window pops up, Double Click on FONTS. + +4] When the FONTS window pops up, select File then Install New Font... + +5] A Add Fonts window will pop up, just go to the folder that you +unzipped the Font(s) to, select the Font(s) and then click on OK. +Now the Font(s) are installed. + + Now you can use the Font(s) in programs the utilize Fonts. Make +sure that you install the font(s) first, then open up your apps +(so the app will recognize the font). Sometimes you'll have to +wait until you computer 'auto-refreshes' for programs to recognize +fonts (Windows is sometimes slow to do that). You can refresh your +computer quicker by going into Windows Explorer -or- My Computer and +press F5 (or in the menubar select VIEW then REFRESH). + + +__________ +DISCLAIMER +ŻŻŻŻŻŻŻŻŻŻ +-The font(s) in this zip file were created by me (Brian Kent). All +of my Fonts are Freeware, you can use them any way you want to +(Personal use, Commercial use, or whatever). + +-If you have a Font related site and would like to offer my fonts on +your site, go right ahead. All I ask is that you keep this text file +intact with the Font. + +-You may not Sell or Distribute my Fonts for profit or alter the font +file(s) [.ttf .fon] in any way without asking me first. I can be +reached at: +aefonts[AT]frontiernet[DOT]net + +(make sure you replace the [AT] and [DOT] with the proper characters) . diff -r a0d66c0f5a89 -r 40dd77f71e11 Resources/fonts/chintzys.ttf Binary file Resources/fonts/chintzys.ttf has changed diff -r a0d66c0f5a89 -r 40dd77f71e11 gamelib/state.py --- a/gamelib/state.py Sat Aug 28 08:57:11 2010 +0200 +++ b/gamelib/state.py Sat Aug 28 09:37:21 2010 +0200 @@ -45,6 +45,7 @@ for res in result: res.process(scene_widget) + def initial_state(): """Load the initial state.""" state = State() @@ -255,6 +256,7 @@ def remove_thing(self, thing): del self.things[thing.name] + self.leave() def _make_description(self, text): if text is None: diff -r a0d66c0f5a89 -r 40dd77f71e11 gamelib/widgets.py --- a/gamelib/widgets.py Sat Aug 28 08:57:11 2010 +0200 +++ b/gamelib/widgets.py Sat Aug 28 09:37:21 2010 +0200 @@ -58,10 +58,10 @@ def __init__(self, screen, text, wrap_width, style=None, **kwds): CursorWidget.__init__(self, screen) + self.set_style(style) paras = text.split("\n\n") text = "\n".join([textwrap.fill(para, wrap_width) for para in paras]) albow.controls.Label.__init__(self, text, **kwds) - self.set_style(style) def set_style(self, style): self.set_margin(5) @@ -70,6 +70,7 @@ self.bg_color = (127, 127, 127) self.fg_color = (0, 0, 0) if style == "JIM": + self.set(font=get_font(20, "chintzy.ttf")) self.bg_color = Color(255, 127, 127, 207) self.fg_color = (0, 0, 0) self.border_color = (127, 0, 0)