03-13-2008
Quote:
Originally Posted by
nua7
Following can be used:
###################
## "style sheet" ##
my $ss_header = $mw -> fontCreate( -family => "Courier", -size => "14", -weight => "bold" );
my $ss_results_body = $mw->fontCreate(
-family => "screen",
-size => 12,
-weight => "normal"
);
Hope this is helpful!
Thanks!
nua7
nua7,
Can you please explain the usage please?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
We have process log with user defined error messages and information echos. I wanted to highlight error messgaes in that log file while writing in it. Is there any option with either echo or any other command which enables making text bold or we can change the font of body text of echo.
... (4 Replies)
Discussion started by: satgo
4 Replies
2. Shell Programming and Scripting
Does anyone know how can I change font color, background color etc for a particular user using .profile? Any help is appreciated. (0 Replies)
Discussion started by: fifo_vs_lifo23
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a small requirement where i want to change the color & font of some text in a file.
i have a file error.txt which will be created in the script using egrep.
After that iam adding these lines at head & tail to that file using the following code
awk 'BEGIN{print"Please... (4 Replies)
Discussion started by: pssandeep
4 Replies
4. UNIX for Advanced & Expert Users
I need to print different lines in different font types and sizes to the terminal window from csh script. I can easily change font color and print characters in bold or underline, but cannot figure out a way to change font. Any help is greatly appreciated.:confused: (3 Replies)
Discussion started by: helido
3 Replies
5. Solaris
Hello,
It is not related to scripting or unix command but it is related to Solaris environment setup. I'm a web developer, in my web application (J2EE using WebLogic 8.1) currently it's running in Windows. We are planning to have Disaster Server in Solaris host. In my application, we are... (1 Reply)
Discussion started by: luckybalaji
1 Replies
6. Shell Programming and Scripting
I'm writing a simple menu script and I would like to output the whole script using background color: black AND foreground color:white. Meaning if the ssh terminal of a user is set to green for example, it will change to my desired color when menu script is executed. Once the script is exited, it... (1 Reply)
Discussion started by: lhareigh890
1 Replies
7. Shell Programming and Scripting
i am using ubuntu 11.04 and i just finished writing a shell script but i was wanting to know if their is a way to change the font color of just one sentence? (2 Replies)
Discussion started by: hotshot247
2 Replies
8. UNIX for Advanced & Expert Users
I want to differentiate the STDOUT and STDERR messages in my terminal .
If a script or command is printing a message in terminal I want to differentiate by colors,
Is it possible ?
Example:
$date
Wed Jul 27 12:36:50 IST 2011
$datee
bash: datee: command not found
$alias ls
alias... (2 Replies)
Discussion started by: ungalnanban
2 Replies
9. UNIX for Dummies Questions & Answers
Please mention "How to increase font size for text to type commands in CYGWIN " ? (2 Replies)
Discussion started by: adirajup
2 Replies
10. Shell Programming and Scripting
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
LEARN ABOUT PHP
printer_create_font
PRINTER_CREATE_FONT(3) 1 PRINTER_CREATE_FONT(3)
printer_create_font - Create a new font
SYNOPSIS
resource printer_create_font (string $face, int $height, int $width, int $font_weight, bool $italic, bool $underline, bool $strike-
out, int $orientation)
DESCRIPTION
The function creates a new font and returns a handle to it. A font is used to draw text. For an example see printer_select_font(3).
PARAMETERS
o $face
-$face must be a string specifying the font face.
o $height
-$height specifies the font height.
o $width
-$width specifies the font width.
o $font_weight
- The $font_weight specifies the font weight (400 is normal), and can be one of the following predefined constants.
o PRINTER_FW_THIN: sets the font weight to thin (100).
o PRINTER_FW_ULTRALIGHT: sets the font weight to ultra light (200).
o PRINTER_FW_LIGHT: sets the font weight to light (300).
o PRINTER_FW_NORMAL: sets the font weight to normal (400).
o PRINTER_FW_MEDIUM: sets the font weight to medium (500).
o PRINTER_FW_BOLD: sets the font weight to bold (700).
o PRINTER_FW_ULTRABOLD: sets the font weight to ultra bold (800).
o PRINTER_FW_HEAVY: sets the font weight to heavy (900).
o $italic
-$italic can be TRUE or FALSE, and sets whether the font should be italic.
o $underline
-$underline can be TRUE or FALSE, and sets whether the font should be underlined.
o $strikeout
-$strikeout can be TRUE or FALSE, and sets whether the font should be stroked out.
o $orientaton
-$orientation specifies a rotation.
RETURN VALUES
Returns a font handle on success or FALSE on error.
PHP Documentation Group PRINTER_CREATE_FONT(3)