diff libpurple/protocols/myspace/myspace.h @ 17946:b3e971b375b5

Support font sizes in sending and receiving formatted text. Add conversion routines for msim markup <f h=##> to libpurple <font size=##>: pixel height <=> point sizes <=> libpurple relative HTML sizes Text sent between msimprpl and the official MySpaceIM client of varying sizes matches up fairly well with this change.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Fri, 13 Jul 2007 05:48:13 +0000
parents cf55077a3752
children ac7066ffa109
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h	Thu Jul 12 04:15:45 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.h	Fri Jul 13 05:48:13 2007 +0000
@@ -196,6 +196,10 @@
 int msim_send_im(PurpleConnection *gc, const gchar *who, const gchar *message, 
 	PurpleMessageFlags flags);
 gboolean msim_send_bm(MsimSession *session, const gchar *who, const gchar *text, int type);
+guint msim_point_to_purple_size(guint point);
+guint msim_purple_size_to_point(guint size);
+guint msim_height_to_point(guint height);
+guint msim_point_to_height(guint point);
 void msim_send_im_cb(MsimSession *session, MsimMessage *userinfo, gpointer data);
 
 void msim_unrecognized(MsimSession *session, MsimMessage *msg, gchar *note);