Sponsored Content
Top Forums UNIX for Advanced & Expert Users capture text from applications Post 302282814 by manchester on Monday 2nd of February 2009 12:48:48 AM
Old 02-02-2009
Quote:
Originally Posted by Corona688
I believe mozilla uses the freetype library in most cases... But no program is obliged to draw text in exactly the way you want. Even if you manage to intercept the text-drawing libraries of each and every program on your system you may find that it doesn't draw text in the right order to make sense when captured, or might render individual glyphs only once then draw the rest just by placing bitmaps, etc. Graphics is not console and will not behave like one.
Actually on Linux, while using Mozilla, XdrawString is getting called. But now i was tying that on Xandros Flavour, and that function was not gettin called. ie it is using some different libraries.
how can solve this problem... ay feasible solution u can think of or any other approach?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

X applications

I am an Oracle DBA who has previously worked only on NT machines. I need to install Oracle on an AIX box. This Unix server has only a CRT monitor. The Oracle installation REQUIRES a graphical means of seeing the Unix machine. I've been told that I should telnet from a PC that can display X... (2 Replies)
Discussion started by: jbrax
2 Replies

2. UNIX for Advanced & Expert Users

Publishing X applications

Hi all, I have some UNIX servers (all flavor to be honest: SOLARIS, AIX, HP-UX) running some applications. I would like to publish these applications to remote client mainly running Windows XP. I know i can remotely access the desktop thanks to Cygwin,Hummingbird EXCEED... But I don't... (2 Replies)
Discussion started by: Platinium
2 Replies

3. Shell Programming and Scripting

transiest applications

i have to write a script that which would send mails For all the transient apps 1. How many apps are running 2. Since when is the app running plz help me in this............... plz help me, its urgent,................. plzzzzzzzzzzzzzzzzzzzzzzzzzzz (2 Replies)
Discussion started by: ali560045
2 Replies

4. UNIX for Advanced & Expert Users

Usernames across Applications

Hello everyone, I was just wondering if there was a way to make it so that usernames could be used across applications. For instance, I have a server that has a bunch of users. I want these users to have ways of accessing my database as well as a variety of other programs, but I don't want them... (2 Replies)
Discussion started by: gonzofish
2 Replies

5. Shell Programming and Scripting

Scripting with applications

Hi, I am developing a script that invokes a program, and that program is going to prompt for some input every now and then based on some parameters. My script shall provide input to the program, automatically, by processing the text output by the program.. say.. when the program asks ... (3 Replies)
Discussion started by: icecoldaswin
3 Replies

6. Linux

Portable Applications

Hello Im stuck with a project on converting existing applications in to their portable versions, What i mean is that i want an application to run on a Linux OS without the need of actually installing the application on that machine. My preffered OS is fedora as it is used on most machines in my... (1 Reply)
Discussion started by: engineeringme
1 Replies

7. Shell Programming and Scripting

Need to capture certain text from a string in a different file

Hi, I wanted to know how i could accomplish this in a script using ksh. Lets say there is a file called test.dat and it has a certain input like below : . . Hi = 56 Hi = 67 . . 1 record(s) selected Now i need to capture the numbers after the = sign and store them in a... (3 Replies)
Discussion started by: Siddarth
3 Replies

8. Shell Programming and Scripting

GUI Applications

Hi Experts, Can anyone suggest me kindly, whether designing some small GUI applications are possible in shell scripting..... Like a small calculator kind of stuff....... I fit is possible guide me with some examples. Thanks, Newbie....... (0 Replies)
Discussion started by: kritibalu
0 Replies

9. UNIX for Beginners Questions & Answers

Starting Applications With X

So, I wanted to see if I could just use X without a desktop. I installed Debian from a netinstall on a vm and installed xorg with apt. Logged in as a normal user with startx and had a big black background. Seemed like everything was working as expected, so I went to configure tint2 at start up. I... (3 Replies)
Discussion started by: Azrael
3 Replies
XDrawText()															       XDrawText()

Name
  XDrawText - draw 8-bit polytext strings.

Synopsis
  XDrawText(display, drawable, gc, x, y, items, nitems)
	Display *display;
	Drawable drawable;
	GC gc;
	int x, y;
	XTextItem *items;
	int nitems;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  drawable  Specifies the drawable.

  gc	    Specifies the graphics context.

  x	    Specify the x and y coordinates of the baseline starting position for the initial string, relative to the origin of the specified
  y	    drawable.

  items     Specifies a pointer to an array of text items.

  nitems    Specifies the number of text items in the items array.

Description
  XDrawText() is capable of drawing multiple strings on the same horizontal line and changing fonts between strings.  Each  XTextItem  struc-
  ture	contains  a string, the number of characters in the string, the delta offset from the starting position for the string, and the font.
  Each text item is processed in turn.	The font in each XTextItem is stored in the specified GC and used for subsequent text.	If the	XTex-
  tItem.font  is  None, the font in the GC is used for drawing and is not changed.  Switching between fonts with different drawing directions
  is permitted.

  The delta in each XTextItem specifies the change in horizontal position before the string is drawn.  The delta is always added to the char-
  acter  origin  and  is not dependent on the draw direction of the font.  For example, if x = 40, y = 20, and items[0].delta = 8, the string
  specified by items[0].chars would be drawn starting at x = 48, y = 20.  The delta for the second string begins at the rbearing of the  last
  character in the first string.  A negative delta would tend to overlay subsequent strings on the end of the previous string.

  Only the pixels selected in the font are drawn (the background member of the GC is not used to fill the bounding box).

  In all X releases, there is a limit to the number and size of strings that can be drawn in a single XDrawText() call, that varies according
  to the server.  To determine how much text you can draw in a single call, you find out your server's maximum	request  size  using  XMaxRe-
  questSize().	 Subtract four, and then subtract ((strlen(string)+2)/4) for each string.  This is the maximum amount of text you can draw in
  a single XDrawText() call.

  XDrawText() uses the following elements in the  specified  GC:  function,  plane_mask,  fill_style,  font,  subwindow_mode,  clip_x_origin,
  clip_y_origin,  and  clip_mask.   This  function also uses these graphics context mode-dependent components:	foreground, background, tile,
  stipple, ts_x_origin, and ts_y_origin.

  For more information, see Volume One, Chapter 6, Drawing Graphics and Text, and Chapter 5, The Graphics Context.

Structures
     typedef struct {
	 char *chars;	 /* pointer to string */
	 int nchars;	 /* number of characters */
	 int delta;	 /* delta between strings */
	 Font font;	 /* font to print it in, None don't change */
     } XTextItem;

Errors
  BadDrawable
  BadFont
  BadGC
  BadMatch

See Also
  XDrawImageString(), XDrawImageString16(), XDrawString(), XDrawString16(), XDrawText16(), XQueryTextExtents(), XQueryTextExtents16(),	XTex-
  tExtents(), XTextExtents16(), XTextWidth(), XTextWidth16().

Xlib - Text															       XDrawText()
All times are GMT -4. The time now is 04:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy