Displaying 18 results from an estimated 18 matches for "swfdecfont".
Did you mean:
swfdec_font
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...actor = SWFDEC_TEXT_SCALE_FACTOR;
offsets = s->b;
n_glyphs = swfdec_bits_get_u16 (&s->b);
@@ -234,16 +235,22 @@ tag_func_define_font (SwfdecSwfDecoder *
}
static void
-get_kerning_record (SwfdecBits * bits, int wide_codes)
+swfdec_font_parse_kerning_table (SwfdecSwfDecoder *s, SwfdecFont *font, gboolean wide_codes)
{
- if (wide_codes) {
- swfdec_bits_get_u16 (bits);
- swfdec_bits_get_u16 (bits);
- } else {
- swfdec_bits_get_u8 (bits);
- swfdec_bits_get_u8 (bits);
+ SwfdecBits *bits;
+ guint n_kernings, i;
+
+ n_kernings = swfdec_bits_get_u16 (bits);
+ for (i = 0;...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...swfdec/swfdec_font.c
index b3616dc..b7878a0 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -29,6 +29,7 @@
#include "swfdec_shape.h"
#include "swfdec_stroke.h"
#include "swfdec_swf_decoder.h"
+#include "swfdec_tag.h"
G_DEFINE_TYPE (SwfdecFont, swfdec_font, SWFDEC_TYPE_CHARACTER)
@@ -124,7 +125,7 @@ convert_from_language (const char *s, Sw
#endif
int
-tag_func_define_font_info (SwfdecSwfDecoder *s, guint version)
+tag_func_define_font_info (SwfdecSwfDecoder *s, guint tag)
{
SwfdecFont *font;
guint id, len, i;
@@ -133,8 +134,...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...unsigned int conditions,
+ guint conditions,
guint8 key);
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 03157b1..6794e0f 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -73,7 +73,7 @@ swfdec_font_init (SwfdecFont * font)
* Returns: the shape of the requested glyph or %NULL if no such glyph exists.
**/
SwfdecShape *
-swfdec_font_get_glyph (SwfdecFont * font, unsigned int glyph)
+swfdec_font_get_glyph (SwfdecFont * font, guint glyph)
{
g_return_val_if_fail (SWFDEC_IS_FONT (font), NULL);
@@ -112,1...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.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_xml.c libswfdec/swfdec_xml.h
...| 12 ++++++++----
7 files changed, 52 insertions(+), 34 deletions(-)
New commits:
commit 5272df32bbe0ad08d920a5c3e4342aab8c4572e8
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 14 15:08:57 2007 +0300
Get only the name of the font from EditText tag, not SwfdecFont
diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c
index fabddb2..2f38d85 100644
--- a/libswfdec/swfdec_text_field.c
+++ b/libswfdec/swfdec_text_field.c
@@ -62,6 +62,8 @@ swfdec_text_field_dispose (GObject *object)
text->text_input = NULL;
g_free (text->variable...
2008 Mar 30
3
[Bug 15262] New: Regression - text labels not shown in "Pinch-hitter"
http://bugs.freedesktop.org/show_bug.cgi?id=15262
Summary: Regression - text labels not shown in "Pinch-hitter"
Product: swfdec
Version: git
Platform: x86-64 (AMD64)
URL: http://media1.break.com/dnet/media/2007/10/pinch-
hitter.swf
OS/Version: Linux (All)
Status: NEW
Severity:
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...unsigned int conditions,
+ guint conditions,
guint8 key);
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 03157b1..6794e0f 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -73,7 +73,7 @@ swfdec_font_init (SwfdecFont * font)
* Returns: the shape of the requested glyph or %NULL if no such glyph exists.
**/
SwfdecShape *
-swfdec_font_get_glyph (SwfdecFont * font, unsigned int glyph)
+swfdec_font_get_glyph (SwfdecFont * font, guint glyph)
{
g_return_val_if_fail (SWFDEC_IS_FONT (font), NULL);
@@ -112,1...
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...he leak resolution wasn't high enough to distinguish
between g_slice_allocs.
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 6794e0f..1b032d8 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -37,14 +37,23 @@ swfdec_font_dispose (GObject *object)
SwfdecFont * font = SWFDEC_FONT (object);
guint i;
- for (i = 0; i < font->glyphs->len; i++) {
- g_object_unref (g_array_index (font->glyphs, SwfdecFontEntry, i).shape);
+ if (font->glyphs) {
+ for (i = 0; i < font->glyphs->len; i++) {
+ g_object_unref (g_array_index...
2007 Apr 17
0
15 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_edittext.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sprite.c
...Benjamin Otte <otte@gnome.org>
Date: Tue Apr 17 11:12:46 2007 +0200
read font names sanely
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 0aca1d5..c626104 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -93,6 +93,7 @@ swfdec_font_get_glyph (SwfdecFont * font
return g_array_index (font->glyphs, SwfdecFontEntry, glyph).shape;
}
+#if 0
static char *
convert_from_language (const char *s, SwfdecLanguage language)
{
@@ -120,6 +121,7 @@ convert_from_language (const char *s, Sw
SWFDEC_ERROR ("given text is not in language %s",...
2007 Apr 17
0
Branch 'as' - 17 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c
...Benjamin Otte <otte@gnome.org>
Date: Tue Apr 17 11:12:46 2007 +0200
read font names sanely
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 0aca1d5..c626104 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -93,6 +93,7 @@ swfdec_font_get_glyph (SwfdecFont * font
return g_array_index (font->glyphs, SwfdecFontEntry, glyph).shape;
}
+#if 0
static char *
convert_from_language (const char *s, SwfdecLanguage language)
{
@@ -120,6 +121,7 @@ convert_from_language (const char *s, Sw
SWFDEC_ERROR ("given text is not in language %s",...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ll currently running intervals */
};
struct _SwfdecPlayerClass
diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h
index f03b60f..f601dff 100644
--- a/libswfdec/swfdec_types.h
+++ b/libswfdec/swfdec_types.h
@@ -43,6 +43,7 @@ typedef struct _SwfdecEventList SwfdecEv
typedef struct _SwfdecFont SwfdecFont;
typedef struct _SwfdecGraphic SwfdecGraphic;
typedef struct _SwfdecImage SwfdecImage;
+typedef struct _SwfdecListener SwfdecListener;
typedef struct _SwfdecMovie SwfdecMovie;
typedef struct _SwfdecShape SwfdecShape;
typedef struct _SwfdecShapeVec SwfdecShapeVec;
diff-tree e5d04657b...
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...Benjamin Otte <otte@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -237,7 +237,7 @@ tag_func_define_font (SwfdecSwfDecoder *
static void
swfdec_font_parse_kerning_table (SwfdecSwfDecoder *s, SwfdecFont *font, gboolean wide_codes)
{
- SwfdecBits *bits;
+ SwfdecBits *bits = &s->b;
guint n_kernings, i;
n_kernings = swfdec_bits_get_u16 (bits);
diff --git a/libswfdec/swfdec_font.h b/libswfdec/swfdec_font.h
index 23ecce4..babfa5a 100644
--- a/libswfdec/swfdec_font.h
+++ b/libswfdec/sw...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...fe573 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -27,6 +27,7 @@
#include "swfdec_bits.h"
#include "swfdec_debug.h"
#include "swfdec_shape.h"
+#include "swfdec_stroke.h"
#include "swfdec_swf_decoder.h"
G_DEFINE_TYPE (SwfdecFont, swfdec_font, SWFDEC_TYPE_CHARACTER)
@@ -184,7 +185,7 @@ swfdec_font_parse_shape (SwfdecSwfDecode
entry->shape = shape;
g_ptr_array_add (shape->fills, swfdec_pattern_new_color (0xFFFFFFFF));
- g_ptr_array_add (shape->lines, swfdec_pattern_new_stroke (20, 0xFFFFFFFF));
+ g_ptr_arr...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...SwfdecCharacter SwfdecCharacter;
typedef struct _SwfdecColorTransform SwfdecColorTransform;
typedef struct _SwfdecContent SwfdecContent;
-typedef struct _SwfdecDebugger SwfdecDebugger;
typedef struct _SwfdecDecoder SwfdecDecoder;
typedef struct _SwfdecEventList SwfdecEventList;
typedef struct _SwfdecFont SwfdecFont;
diff-tree 307c09bbe7611bf2b1dae7e59a98d32cf009f595 (from e04f9526fa8a613d88219ebcb47ac61addd5bcab)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Aug 20 21:34:07 2007 +0200
get rid of debugger bits
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index...
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):
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...-dump_text (SwfdecText *text)
-{
- guint i;
- gunichar2 uni[text->glyphs->len];
- char *s;
-
- for (i = 0; i < text->glyphs->len; i++) {
- SwfdecTextGlyph *glyph = &g_array_index (text->glyphs, SwfdecTextGlyph, i);
- uni[i] = g_array_index (glyph->font->glyphs, SwfdecFontEntry, glyph->glyph).value;
- if (uni[i] == 0)
- goto fallback;
- }
- s = g_utf16_to_utf8 (uni, text->glyphs->len, NULL, NULL, NULL);
- if (s == NULL)
- goto fallback;
- g_print (" text: %s\n", s);
- g_free (s);
- return;
-
-fallback:
- g_print (" %u chara...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...he leak resolution wasn't high enough to distinguish
between g_slice_allocs.
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index 6794e0f..1b032d8 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -37,14 +37,23 @@ swfdec_font_dispose (GObject *object)
SwfdecFont * font = SWFDEC_FONT (object);
guint i;
- for (i = 0; i < font->glyphs->len; i++) {
- g_object_unref (g_array_index (font->glyphs, SwfdecFontEntry, i).shape);
+ if (font->glyphs) {
+ for (i = 0; i < font->glyphs->len; i++) {
+ g_object_unref (g_array_index...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...bd683
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Nov 27 19:13:49 2007 +0100
remove button dumping code
IT doesn't work anymore
diff --git a/test/dump.c b/test/dump.c
index 38a456d..77bd382 100644
--- a/test/dump.c
+++ b/test/dump.c
@@ -282,23 +282,6 @@ dump_font (SwfdecFont *font)
static void
dump_button (SwfdecButton *button)
{
- GList *walk;
-
-#define SWFDEC_CONTENT_IN_STATE(content, state) \
- ((content)->sequence->start <= state && \
- (content)->sequence->end > state)
- if (verbose) {
- for (walk = button->records; walk; w...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...SwfdecCharacter SwfdecCharacter;
typedef struct _SwfdecColorTransform SwfdecColorTransform;
typedef struct _SwfdecContent SwfdecContent;
-typedef struct _SwfdecDebugger SwfdecDebugger;
typedef struct _SwfdecDecoder SwfdecDecoder;
typedef struct _SwfdecEventList SwfdecEventList;
typedef struct _SwfdecFont SwfdecFont;
diff-tree 307c09bbe7611bf2b1dae7e59a98d32cf009f595 (from e04f9526fa8a613d88219ebcb47ac61addd5bcab)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Aug 20 21:34:07 2007 +0200
get rid of debugger bits
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index...