473,388 Members | 1,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Using Unsafe Fonts for Web

Hello,
I need a custom font, say Verlag, to be used for some headers of the
website. Can anyone recommend or direct me to a technique or hack to
use custom non-standard web-unsafe fonts? I do not want to use images
because I'd need too many of those. Of course, I 'd like to find a
cross-browser solution.
Thanks in advance.
Jun 27 '08 #1
12 3336
vunet wrote:
Hello,
I need a custom font, say Verlag, to be used for some headers of the
website. Can anyone recommend or direct me to a technique or hack to
use custom non-standard web-unsafe fonts?
Unsafe? You do not contract so disease you know if you select a odd
font, the users without specified font will just see an alternate. That
is why it is good practice to specify alternatives that are common and
related in characteristics.
I do not want to use images
because I'd need too many of those. Of course, I 'd like to find a
cross-browser solution.
Thanks in advance.
Images are really your only option, other than revising your design, as
Jukka loves to write "stop wanting this"
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #2
On 3 Jun, 14:35, vunet <vunet...@gmail.comwrote:
I need a custom font, say Verlag, to be used for some headers of the
website. Can anyone recommend or direct me to a technique or hack to
use custom non-standard web-unsafe fonts?
No. Sorry.

There just aren't any techniques out there that have "worthwhile"
levels of support and compatibility to recommend them for everyday
use.
sIFR is about the best (server-side rendering into Flash) if you
_MUST_ do this.
http://www.mikeindustries.com/blog/sifr/

You could also look at Bitstream TrueDoc, M$oft WEFT and CSS 3 (ish),
for the future
Jun 27 '08 #3
Andy Dingley wrote:
There just aren't any techniques out there that have "worthwhile"
levels of support and compatibility to recommend them for everyday
Well, you could use a table, or DIV's, with an image of each successive
character in each cell/div.

I'm sure that's what some sites must be doing (the ones where Opera says
it is downloading 90+ images... :-)

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jun 27 '08 #4
On Jun 3, 11:13 am, Andy Dingley <ding...@codesmiths.comwrote:
On 3 Jun, 14:35, vunet <vunet...@gmail.comwrote:
I need a custom font, say Verlag, to be used for some headers of the
website. Can anyone recommend or direct me to a technique or hack to
use custom non-standard web-unsafe fonts?

No. Sorry.

There just aren't any techniques out there that have "worthwhile"
levels of support and compatibility to recommend them for everyday
use.

sIFR is about the best (server-side rendering into Flash) if you
_MUST_ do this.http://www.mikeindustries.com/blog/sifr/

You could also look at Bitstream TrueDoc, M$oft WEFT and CSS 3 (ish),
for the future
Thank you all. I am considering Andy's and Steve's suggestions.
Jun 27 '08 #5
In article <48********@news.greennet.net>,
Steve Swift <St***********@gmail.comwrote:
Andy Dingley wrote:
There just aren't any techniques out there that have "worthwhile"
levels of support and compatibility to recommend them for everyday

Well, you could use a table, or DIV's, with an image of each successive
character in each cell/div.
Why would you do that rather than the images just follow each other
inline or text done elsewhere and screenshot en masse?

--
dorayme
Jun 27 '08 #6
dorayme wrote:
Why would you do that rather than the images just follow each other
inline or text done elsewhere and screenshot en masse?
Well, If that isn't the "royal you", then I'd put each character image
into its own cell in a borderless table simply to prevent wrapping
splitting strings of character images that represent words. This was for
a page header, and wrapped text looks odd there, and would look doubly
odd if the wrapping split words.

Of course, being me, I'd be happy trying <NOBRaround a bunch of <IMG>
tags, to see if that worked. It's certainly easier.
I have the advantage of working in a controlled environment where only
IE6 and Firefox2 are supported, so I'm not obliged† to care if it
doesn't work in other browsers. It doesn't stop me caring, of course.

† "obliged" = "paid"

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jun 27 '08 #7
In article <48********@news.greennet.net>,
Steve Swift <St***********@gmail.comwrote:
dorayme wrote:
Why would you do that rather than the images just follow each other
inline or text done elsewhere and screenshot en masse?

Well, If that isn't the "royal you", then I'd put each character image
into its own cell in a borderless table simply to prevent wrapping
splitting strings of character images that represent words. This was for
a page header, and wrapped text looks odd there, and would look doubly
odd if the wrapping split words.
No royal you. I am Australian and I am looking directly at you. I am not
following any of this? If it is a heading, and you wanted fancy, why
would you do your one char per cell instead of making a nice heading in
Photoshop or Illustrator and exporting as a gif or png? Or not at least
putting a set of chars that make a word into a cell (given your penchant
for cells)?

Why is this earth so puzzling?

--
dorayme
Jun 27 '08 #8
No royal you. I am Australian and I am looking directly at you. I am not
following any of this? If it is a heading, and you wanted fancy, why
would you do your one char per cell instead of making a nice heading in
Photoshop or Illustrator and exporting as a gif or png? Or not at least
putting a set of chars that make a word into a cell (given your penchant
for cells)?
Because my page supports millions of people, all with different names,
and puts their name in the page heading. I can manage this with about
70 small gifs (Upper Case, Lower case, digits and some puntuation marks)
but to do the entire header in a single GIF would require a new GIF for
every distinct name I encountered.

My header (and user base) are hypothetical, but the OP mentioned that
the number of variations made using images for the whole header
un-acceptable.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jun 27 '08 #9
In article <48********@news.greennet.net>,
Steve Swift <St***********@gmail.comwrote:
No royal you. I am Australian and I am looking directly at you. I am not
following any of this? If it is a heading, and you wanted fancy, why
would you do your one char per cell instead of making a nice heading in
Photoshop or Illustrator and exporting as a gif or png? Or not at least
putting a set of chars that make a word into a cell (given your penchant
for cells)?

Because my page supports millions of people, all with different names,
and puts their name in the page heading. I can manage this with about
70 small gifs (Upper Case, Lower case, digits and some puntuation marks)
but to do the entire header in a single GIF would require a new GIF for
every distinct name I encountered.

My header (and user base) are hypothetical, but the OP mentioned that
the number of variations made using images for the whole header
un-acceptable.
You are thinking some script or server side generating the headers? OK,
in that case. Otherwise, if they are hand made, what I said would be
better.

(I have now and then toyed with the idea of making my own image-font
set. But what a pain to use!)

--
dorayme
Jun 27 '08 #10
Steve Swift wrote:
[dorayme wrote:]
>If it is a heading, and you wanted fancy,
why would you do your one char per cell instead of making a nice
heading in Photoshop or Illustrator and exporting as a gif or png? Or
not at least putting a set of chars that make a word into a cell
(given your penchant for cells)?

Because my page supports millions of people, all with different names,
and puts their name in the page heading. I can manage this with about
70 small gifs (Upper Case, Lower case, digits and some puntuation marks)
but to do the entire header in a single GIF would require a new GIF for
every distinct name I encountered.
Generating GIFs of complete names on the fly isn't hard, and that
would let you typeset them properly (kerned, with ligatures, etc),
rather than lumping them into separate cells. And since browsers would
cache them, you wouldn't have to regenerate the GIF for refreshes, so
rendering would be faster on subsequent requests.

On a reasonably fast server, a CGI script that whacked the name into a
LaTeX template, ran it through pslatex, and rendered the output to GIF
with Ghostscript would probably suffice.

But, hey, whatever floats your boat.

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Jun 27 '08 #11
On 4 Jun, 09:04, Steve Swift <Steve.J.Sw...@gmail.comwrote:
my page [...] puts their name in the page heading. I can manage this with about
70 small gifs (Upper Case, Lower case, digits and some puntuation marks)
The "John Bull printing set" approach. It works, but you lose
kerning. It's OK for ransom notes and OCR A, but for any "aesthetic"
use of a typeface the amount that you've lost will far exceed any
possible benefit of selecting the starting font.

By the time you've mangled it through this process, it'll look worse
than if you'd just specified Comic Sans in the CSS.

but to do the entire header in a single GIF would require a new GIF for
every distinct name I encountered.
That's a trivial bit of code, which you've been able to download as
ready-built PHP for something like 10+ years now. Fear of bitmap
generation code is no excuse.
Jun 27 '08 #12
On 2008-06-04, Andy Dingley <di*****@codesmiths.comwrote:
On 4 Jun, 09:04, Steve Swift <Steve.J.Sw...@gmail.comwrote:
>my page [...] puts their name in the page heading. I can manage this with about
70 small gifs (Upper Case, Lower case, digits and some puntuation marks)

The "John Bull printing set" approach. It works, but you lose
kerning.
Most browsers (Firefox 2, IE 7, Opera 9) don't do kerning anyway. But
they do support proportional fonts.
Jun 27 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Buddy | last post by:
Hello, How can I use the 'System' or 'FixedSys' font in my .NET application using controls (TextBox, Button and ListView)? Thanks,
28
by: Andreas Prilop | last post by:
Jukka reports on http://www.cs.tut.fi/~jkorpela/chars/spaces.html that Internet Explorer 6 fails on the "zero width space" U+200B ​ Is this observation still valid? For which versions of MS...
4
by: Jon Milner | last post by:
How do I declare that my code is unsafe? Sorry the help files at my University have not been installed!
2
by: mmmobasher | last post by:
Dear sirs after some googling i found some code to using unrar.dll, but i get runtime error System.NullReferenceException in line iStatus=RARReadHeader(lHandle, ref uHeader); hear is the code ...
1
by: Z | last post by:
Hello, In my C# program I have a function that uses pointers. Is there a way to tell the compiler to compile only this function with the unsafe switch and compile the remaining project as safe...
10
by: Kamilche | last post by:
I have a question for all you Pythoneers out there. I'm making a game with Python, and have a need for fonts. I am currently using a free TrueType font, but am considering switching to a bitmap...
4
by: Martin | last post by:
Hello, I haven't found any answer on this - if it is possible or not. I have a PCI card with a memory on it. I have also a driver (written in C++) that maps the memory from the card to user...
2
by: Gary | last post by:
1. I've installed a bunch of fonts in main application, which is in native C++ code using AddFontResourceEx 2. A C# application is launched from this main application, but failed to enumerate...
2
by: Daniel Knöpfel | last post by:
Hi all I need to adapt an Msbuild script to compile a visual studio 2005 solution (including several projects and a website). The application is written in C# and using .NET 2.0. Due to late...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.