Author: duncan
Date: Fri Sep 22 06:19:36 2006
New Revision: 8218
Modified:
branches/rel-1-5/freevo/src/osd.py
branches/rel-1-5/freevo/src/util/mediainfo.py
Log:
[ 1563299 ] Increase the font size for chinese
[ 1563296 ] making freevo works with chinese filename
patches from Hu Gang have been applied.
Modified: branches/rel-1-5/freevo/src/osd.py
==============================================================================
--- branches/rel-1-5/freevo/src/osd.py (original)
+++ branches/rel-1-5/freevo/src/osd.py Fri Sep 22 06:19:36 2006
@@ -214,6 +214,11 @@
ptsize = int(ptsize / 0.7) # XXX pygame multiplies by 0.7 for some
reason
_debug_('Loading font "%s"' % filename, 2)
+
+ if config.OSD_FORCE_FONT:
+ filename = config.OSD_FORCE_FONT
+ ptsize *= 1.5
+
font = self.__loadfont__(filename, ptsize)
if not font:
@@ -382,8 +387,8 @@
pygame.display.init()
pygame.font.init()
- self.depth = 32
- self.hw = 0
+ self.depth = 32
+ self.hw = 0
if config.CONF.display == 'dxr3':
self.depth = 32
Modified: branches/rel-1-5/freevo/src/util/mediainfo.py
==============================================================================
--- branches/rel-1-5/freevo/src/util/mediainfo.py (original)
+++ branches/rel-1-5/freevo/src/util/mediainfo.py Fri Sep 22 06:19:36 2006
@@ -332,7 +332,8 @@
if name == name.upper() and info.has_key('type') and \
info['type'] in ('DVD', 'VCD'):
name = util.getname(filename.lower())
- info['title:filename'] = name
+ info['title'] = name
+ info['filename'] = name
if info.has_key('video'):
for video in info['video']:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog