[pitivi] titleeditor: Handle float font sizes
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] titleeditor: Handle float font sizes
- Date: Wed, 9 Apr 2014 09:07:49 +0000 (UTC)
commit 9af579a1068d152cc0ea703c9d8fb906175d0a00
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Thu Mar 20 00:31:48 2014 +0100
titleeditor: Handle float font sizes
pitivi/titleeditor.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index bea5a34..5827706 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -657,7 +657,7 @@ class TitleEditor(Loggable):
def _fontButtonCb(self, widget):
font_desc = widget.get_font_name().split(" ")
font_face = " ".join(font_desc[:-1])
- font_size = str(int(font_desc[-1]) * 1024)
+ font_size = str(int(float(font_desc[-1]) * 1024))
text = "<span face='" + font_face + "'><span size='" + font_size + "'>text</span></span>"
suc, a, t, s = Pango.parse_markup(text, -1, '\x00')
ai = a.get_iterator()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]