use strict;
use Imager;
use Imager::Font;
my $img = Imager->new();
my $file = "D:\\table.png";
$img->open(file=>$file) or die $img->errstr();
# Create smaller version
my $thumb = $img->scale(scalefactor=>1.2);
my $black = Imager::Color->new( 0, 0, 0 );
my $format;
# Autostretch individual channels
…
Hi,
I am looking for a regular expression that can convert my font tags (only with size and colour attributes) into span tags with the relevant inline css. This will be done in VB.NET if that helps at all.
I also need a regular expression to go the other way as well.
To elaborate below is an example of the conversion I am…
Hi,
I have a nested list of ul elements. I would like to decrease the font size by a couple of pixels for each level down.
So for example the first li elements would have font size 18px, then nested elements of that would have font size 16px and any nested elements of that would have font size 14px etc. However once the…
Hey Guys,
I've been working on my first HTML5/CSS3 site, and it's been going well for the most part. Totally loving the new @font-face property, and it works perfectly on my machine. The problem I'm having is when previewed on another device (computer, ipad, iphone), it doesn't seem to be recognising the @font-face property…
fontsquirrel.com allows you to upload a font and create a @font-face kit which you can apply to your website and use to display fonts which will display cross-browser (even in IE6!).
But what I want to know is, is this legal? I've been supplied the font "Lubalin Graph Std" and told to use this for headers on the website I'm…
Hello,
I'm using Bamboo invoice as an invoice generator, and I'm trying to customize the invoice template, but no matter what I do, the font just won't seem to adjust.
currently I have
body {
margin: 0.5in;
font-family: 'helvetica';
font-size: 10pt;}
I've read up on it, and helvetica is an installed font, so it should…
Not sure if this has something to do the live host I'm working with, but I'm using @font-face in the following format,
@font-face {
font-family: 'UbuntuTitle';
src: url('Ubuntu-Title-webfont.eot');
src: local('?'), url('Ubuntu-Title-webfont.woff') format('woff'), url('Ubuntu-Title-webfont.ttf')…
I am running Ubuntu 10.04, Lucid Lynx, and I'm trying to add some fonts for use with Libre Office. In particular, I've placed a GillSans.ttc font file into /usr/share/fonts/truetype by copying it there with:
sudo cp GillSans.ttc /usr/share/fonts/truetype
and then attempting to "install" it by updating…
I am using a package written on top of XeLaTeX. This package uses fontspec to specify fonts for different parts of your text: latin, non-latin, math mode, ...
The package comes with several sample files. I was able to xelatex most of them that depend on regular ttf or otf files. However, one of them…
I am currently using a font from the google font directory on my website. I don't fully understand how it works, but it seems like when someone opens my site, their browser is told to go and fetch the font from Google. (correct me if I'm wrong).
Now, what I'm wondering is, what are the pros and cons…
At present I load my font for my game in with @font-face
For instance:
@font-face {
font-family: 'Orbitron';
src: url('res/orbitron-medium.ttf');
}
and then reference it throughout my JS implementation as such:
ctx.font = "12pt Orbitron";
where ctx is my 2d context from the canvas.
…
Following advice in The 6 Most Important CSS Techniques You Need To Know, I set my body's font-size to 62.5%, the container div's font-size to 1.4 em (slight variation from the article). p.tags and p.published's font-size is set to 1em.
However, this doesn't work for me. Both the normal text and…
This has been driving me crazy all day.
I need to get a font filename (eg. Arial.ttf) based off of it's name (Arial in this case). The problem is, I am only supplied with the font name (Arial) and weather it's bold, italic or both. Using those pieces of information, I need to find the font file…
I'm using this method to embed custom fonts in my iPhone app.
The embedding works: When I run the following code, the fonts are listed. (Currently, I'm embedding all family members of Myriad Pro in OTF format)
for( NSString *familyName in [UIFont familyNames] ){
for( NSString *fntName in…
WPF lets you specify the FontFamily of TextBlocks, Buttons, etc.
Is there a way to discover what font WPF decided to use for a given element?
For example, if you leave the FontFamily unspecified, styles notwithstanding, an element will take on the Font Family 'GlobalUserInterface'. In this…
This is driving me crazy. I'm using monochrome rendering for fonts and this causes a few problems in my browser so I wanted to make Ubuntu the standard sans-serif font. I changed it in the preferences and it initially works okay but after a while it reverts to the default. If I go into the…
Hi I installed VS2010 yesterday - (both VS2005 and VS2010 installed).
But I can't find the "FixedSys" style font from the Fonts and Colors - Font (pull down list).
Otherwise,I can use the style font in my VS2005.
Any suggestion? Thank you.
Hey Simple little app for educational purposes, its a simple uitableview and I want users to be able to use a uislider to adjust the font size as needed. The code I have now works to change the font but only when the view is updated, ie when i pull up or down the table view to reveal other…
Hi, I need to convert <font size="10"> to px.
Example only(not correct): <font size="10"> is equivalent to 12px.
Is there any formula or table conversion out there to convert <font size="10"> to px?
Thanks :)
Kind Regards,
Mark
PHP Developer from Philippines
I am currently working on my own implementation of a tab bar for a BlackBerry app, where each tab bar has a title that is right aligned (i.e. the last character in each should be the same distance from the right hand side of the screen). To work out where to draw the text I am using the…
Hi,
I just installed a couple of fonts on my Mac.
The font shows up in my Photoshop, but not in the Flash font list.
I already clear the font cache, reboot, put fonts in all folders (/Library/..., /Users/... etc)
What could be causing it?
Thx