Displaying 20 results from an estimated 22 matches for "textformat".
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...st/trace/text-field-replace-text-7.swf |binary
test/trace/text-field-replace-text-7.swf.trace | 9 +
test/trace/text-field-replace-text-8.swf |binary
test/trace/text-field-replace-text-8.swf.trace | 9 +
test/trace/text-field-replace-text.as | 53 +++++++++
test/trace/textformat-init-5.swf |binary
test/trace/textformat-init-5.swf.trace | 2
test/trace/textformat-init-6.swf |binary
test/trace/textformat-init-6.swf.trace | 2
test/trace/textformat-init-7.swf |binary
test/trace/textformat-init-7.swf.trace...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...est/trace/text-field-set-text-format-7.swf.trace | 139 ++++++++++++++++++++
test/trace/text-field-set-text-format-8.swf |binary
test/trace/text-field-set-text-format-8.swf.trace | 139 ++++++++++++++++++++
test/trace/text-field-set-text-format.as | 95 ++++++++++++++
test/trace/textformat-init-5.swf |binary
test/trace/textformat-init-5.swf.trace | 11 +
test/trace/textformat-init-6.swf |binary
test/trace/textformat-init-6.swf.trace | 11 +
test/trace/textformat-init-7.swf |binary
test/trace/textformat-in...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...quot;;
+ case SWFDEC_TEXT_ALIGN_RIGHT:
+ return "RIGHT";
+ case SWFDEC_TEXT_ALIGN_CENTER:
+ return "CENTER";
+ case SWFDEC_TEXT_ALIGN_JUSTIFY:
+ return "JUSTIFY";
+ default:
+ g_assert_not_reached ();
+ }
+}
+
+/*
+ * Order of tags:
+ * TEXTFORMAT / P or LI / FONT / A / B / I / U
+ *
+ * Order of attributes:
+ * TEXTFORMAT:
+ * LEFTMARGIN / RIGHTMARGIN / INDENT / LEADING / BLOCKINDENT / TABSTOPS
+ * P: ALIGN
+ * LI: none
+ * FONT: FACE / SIZE / COLOR / LETTERSPACING / KERNING
+ * A: HREF / TARGET
+ * B: none
+ * I: none
+ * U: none
+ */
+sta...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...FontFamily method
Add a test for parseCSSFontFamily function
Add testing for names with - to StyleSheet parsing test
Implement StyleSheet's parseColor method
Add a test for parseColor function
Test on non-stylesheet object in the parse test
Start implementing TextFormat class
Implement font, target and url properties for TextFormat class
Add bullet, bold, italic, kerning and underline properties to TextFormat
Add support for integer properties in TextFormat class
Fix various issues with TextFormat's int properties
Do marking in Te...
2007 Oct 12
1
NEWS
...applications.
- reowkr invalidation handling. Less parts of the screen need to be redrawn on
changes, but the SwfdecPlayer::invalidate signal changed.
-- support the built-in Date, XML, Sound, System.capabilities and TextField
+- support the built-in Date, XML, Sound, System.capabilities and TextFormat
objects plus MovieClip drawing functions
- add initial support for blend modes and filters (full support is expected with
Cairo 1.6)
2007 Oct 12
1
[PATCH] little typo in news file
...n applications.
-- reowkr invalidation handling. Less parts of the screen need to be
redrawn on +- rework invalidation handling. Less parts of the screen
need to be redrawn on changes, but the SwfdecPlayer::invalidate signal
changed.
- support the built-in Date, XML, Sound, System.capabilities and
TextFormat objects plus MovieClip drawing functions
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...libswfdec/swfdec_text_format.c | 7 ++++---
3 files changed, 8 insertions(+), 5 deletions(-)
New commits:
commit 7f1ffc36007dd423124e030feb5961d75098279b
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 28 15:32:08 2007 +0200
Don't crash in TextField code when TextFormat's creation fails (Fixes: 12974)
Also create an object in swfdec_text_format_new even if _global.TextFormat is
missing
diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index e09a7f1..e9c3fed 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++...
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
...SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "");
- swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (text->format_new),
- SWFDEC_AS_STR_color, ret);
+ SWFDEC_AS_VALUE_SET_NUMBER (ret, text->format_new->color);
}
// This doesn't work the same way as TextFormat's color setting
@@ -631,18 +630,16 @@ swfdec_text_field_movie_set_textColor (SwfdecAsContext *cx,
{
SwfdecTextFieldMovie *text;
int value;
- SwfdecAsValue val;
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "i", &value);
if (value < 0) {
- SWFDEC...
2007 Oct 17
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_movie.c libswfdec/swfdec_system_as.c libswfdec/swfdec_text_field_movie.c test/trace
...targetpath-6.swf.trace \
targetpath-7.swf \
targetpath-7.swf.trace \
+ text-field-variable.as \
+ text-field-variable-6.swf \
+ text-field-variable-6.swf.trace \
+ text-field-variable-7.swf \
+ text-field-variable-7.swf.trace \
+ text-field-variable-8.swf \
+ text-field-variable-8.swf.trace \
textformat.as \
textformat-5.swf \
textformat-5.swf.trace \
diff --git a/test/trace/text-field-variable-6.swf b/test/trace/text-field-variable-6.swf
new file mode 100644
index 0000000..277d1b3
Binary files /dev/null and b/test/trace/text-field-variable-6.swf differ
diff --git a/test/trace/text-field-varia...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...named XML parsing function
Merge branch 'master' into policy
Initialize ASSetPropFlags with ASnative
Add ASnative numbers for Video's methods
Implement ASnew ActionScript function. It only has ASnative number, no name
Add a test for ASnew
Add stub for TextFormat.getTextExtent, add a test for TextFormat's properties
Clean up the code to read arguments in TextFormat's constructor
Run init scripts in the correct version
Add previously disabled version 6 versions of few tests
Don't accept arguments when using Date in non-con...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...Object = Object;
+_global.PrintJob = PrintJob;
+_global.RemoteLSOUsage = RemoteLSOUsage;
+_global.Selection = Selection;
+_global.SharedObject = SharedObject;
+_global.Sound = Sound;
+_global.Stage = Stage;
+_global.String = String;
+_global.System = System;
+_global.TextField = TextField;
+_global.TextFormat = TextFormat;
+_global.TextSnapshot = TextSnapshot;
+_global.Video = Video;
+_global.XML = XML;
+_global.XMLNode = XMLNode;
+_global.XMLSocket = XMLSocket;
+_global.clearInterval = clearInterval;
+_global.clearTimeout = clearTimeout;
+_global.enableDebugConsole = enableDebugConsole;
+_global.escape...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...erties-7.swf |binary
test/trace/stylesheet-properties-7.swf.trace | 85
test/trace/stylesheet-properties-8.swf |binary
test/trace/stylesheet-properties-8.swf.trace | 85
test/trace/stylesheet-properties.as | 10
test/trace/textformat-properties-5.swf |binary
test/trace/textformat-properties-5.swf.trace | 35
test/trace/textformat-properties-6.swf |binary
test/trace/textformat-properties-6.swf.trace | 35
test/trace/textformat-properties-7.swf |binary
test/t...
2007 Oct 13
0
swfdec patch, adds letterSpacing support
Hello,
here is a first small patch that adds support to Flash 8 letterSpacing
property as described here :
http://wiki.mediabox.fr/documentation/flash/textformat/letterspacing
http://livedocs.adobe.com/flash/9.0_fr/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts_bak&file=00002274.html
http://livedocs.adobe.com/flash/9.0_fr/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts_bak&file=00004506.html
Of course, it uses P...
2008 Jan 10
0
8 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_bits.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_text_field_movie_html.c test/trace
...text_field_movie_html.c b/libswfdec/swfdec_text_field_movie_html.c
index 0fc6897..b0aa94f 100644
--- a/libswfdec/swfdec_text_field_movie_html.c
+++ b/libswfdec/swfdec_text_field_movie_html.c
@@ -542,7 +542,7 @@ swfdec_text_field_movie_html_text_append_paragraph (SwfdecTextFieldMovie *text,
SwfdecTextFormat *format, *format_prev, *format_font;
GSList *iter, *fonts, *iter_font;
guint index_, index_prev;
- gboolean textformat, bullet, font;
+ gboolean textformat, bullet, font = FALSE;
char *escaped;
g_return_val_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text), string);
commit bfaa75ec99c1b7de...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...ext_paragraph_add_block (SwfdecParagraph *paragraph, int index_,
static void
swfdec_text_field_movie_generate_paragraph (SwfdecTextFieldMovie *text,
- SwfdecParagraph *paragraph, guint start_index, guint end_index)
+ SwfdecParagraph *paragraph, guint start_index, guint length)
{
SwfdecTextFormat *format, *format_prev;
guint index_;
@@ -113,18 +113,14 @@ swfdec_text_field_movie_generate_paragraph (SwfdecTextFieldMovie *text,
g_assert (SWFDEC_IS_TEXT_FIELD_MOVIE (text));
g_assert (paragraph != NULL);
- g_assert (start_index <= end_index);
- g_assert (end_index <= text->...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...croll: ~" + (t.maxhscroll - t.maxhscroll % 100));
+ } else {
+ trace ("maxhscroll: " + t.maxhscroll);
+ }
+ trace ("maxscroll: " + t.maxscroll);
+ trace ("scroll: " + t.scroll);
+}
+
+this.createTextField ("t", 1, 0, 0, 100, 100);
+
+var fmt = new TextFormat ();
+fmt.size = 14;
+t.setNewTextFormat (fmt);
+
+trace ("# EMPTY");
+trace_scroll_properties ();
+
+trace ("# WITH TEXT");
+
+t.text = "asdfo jsofa jsapofjpsajf pjsadpfjsapf josapof jsafjposajf pjsapfj dposajf pojsap fjpasjpfjdsap jfpsajpfd jsapjfdpsajfjpsdajfp\r aposdjf j...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...fdec/swfdec_text_format.c | 5 ++
8 files changed, 166 insertions(+), 18 deletions(-)
New commits:
commit 0f2289cf2e49a0c3ec695e77b4310964ccccbc75
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Tue Oct 23 14:16:53 2007 +0300
Don't set kerning and letterSpacing in TextFormat's set_defaults when v < 8
diff --git a/libswfdec/swfdec_text_format.c b/libswfdec/swfdec_text_format.c
index 63c0849..8a86d18 100644
--- a/libswfdec/swfdec_text_format.c
+++ b/libswfdec/swfdec_text_format.c
@@ -1100,6 +1100,11 @@ swfdec_text_format_set_defaults (SwfdecTextFormat *format)...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...],
+ ["_global", "Sound", false],
+ ["_global", "Stage", false],
+ ["_global", "String", false],
+ ["_global", "System", false],
+ ["_global", "TextField", false],
+ ["_global", "TextFormat", false],
+ ["_global", "TextSnapshot", false],
+ ["_global", "Video", false],
+ ["_global", "XML", false],
+ ["_global", "XMLSocket", false],
+ ["_global", "clearInterval", false],
+ [&qu...
2007 Sep 29
0
libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...ield.StyleSheet.prototype.doTransform = function (name) {
+ if (!this._styles) {
+ this._styles = {};
+ }
+ this._styles[name] = this.transform (this._css[name]);
+};
+
+TextField.StyleSheet.prototype.transform = function (style) {
+ if (style == null)
+ return null;
+
+ var format = new TextFormat ();
+
+ if (style.textAlign)
+ format.align = style.textAlign;
+
+ if (style.fontWeight == "bold") {
+ format.bold = true;
+ } else if (style.fontWeight == "normal") {
+ format.bold = false;
+ }
+
+ if (style.color) {
+ var tmp = this.parseColor (style.color);
+...