473,804 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode Font and NS/MOZ/Firefox

Hi,
I've defined a CSS with this selector:
#IUPBarCode{
font-family : "3 of 9 Barcode";
font-size: 30px;
font-weight : normal;
position: absolute;
top: 150px;
left: 22px;
}
because I wish to print a booking's unique identifier with bar code.
Unfortunately, Mozilla and Firefox don't visualize the bar code, but the
alphabetic font type.
IE and Opera work properly.

Any help is greatly appreciated,

thanks
Emanuele Calò
--
Emanuele Calo'
UI Designer - Usability/Accessibility Manager
Svimservice Spa
Dipartimento Applicazioni Web
Via Massaua, 18 70123 Bari - Italy
+39 - 80 - 5820813
em***********@s vimservice.it
www.svimservice.it

Jul 20 '05 #1
13 9394
Emanuele Calo' wrote:
Hi,
I've defined a CSS with this selector:
#IUPBarCode{
font-family : "3 of 9 Barcode";
font-size: 30px;
font-weight : normal;
position: absolute;
top: 150px;
left: 22px;
}
because I wish to print a booking's unique identifier with bar code.
Unfortunately, Mozilla and Firefox don't visualize the bar code, but the
alphabetic font type.
IE and Opera work properly.

Any help is greatly appreciated,


I have never heard of that font, and I seriously doubt that many people
have it installed on their machine.

Theoretically you could make the font available using @font-face (see
<http://www.w3.org/TR/CSS2/fonts.html#font-descriptions>), but I don't
think this is widely supported.

Also, it's not a good idea to display symbols this way. Read
<http://ppewww.ph.gla.a c.uk/~flavell/charset/fontface-harmful.html>.

Your safest bet is to create an image of the bar code server-side.
Creating a proper ALT text could be a problem, of course.
Matthias

Jul 20 '05 #2
> Emanuele Calo' wrote:
Hi,
I've defined a CSS with this selector:
#IUPBarCode{
font-family : "3 of 9 Barcode";
font-size: 30px;
font-weight : normal;
position: absolute;
top: 150px;
left: 22px;
}
because I wish to print a booking's unique identifier with bar code.
Unfortunately, Mozilla and Firefox don't visualize the bar code, but the
alphabetic font type.
IE and Opera work properly.

Any help is greatly appreciated,

Matthias Gutfeldt:
I have never heard of that font, and I seriously doubt that many people
have it installed on their machine.

Theoretically you could make the font available using @font-face (see
<http://www.w3.org/TR/CSS2/fonts.html#font-descriptions>), but I don't
think this is widely supported.

Also, it's not a good idea to display symbols this way. Read
<http://ppewww.ph.gla.a c.uk/~flavell/charset/fontface-harmful.html>.

Your safest bet is to create an image of the bar code server-side.
Creating a proper ALT text could be a problem, of course.

This page work within an intranet where the font "3 of 9 barcode" is
installed
on all clients.
therefore, I don't have the problem of using @font-face.
The real problem is:
why the selector defined above visualize properly the symbols in IE and
Opera,
and not in Gecko browsers?
Thanks for your answer
emanuele
P.S: excuse me for the post sended at your email address
Jul 20 '05 #3
On Wed, 7 Jul 2004, Emanuele Calo' wrote:
Matthias Gutfeldt:
Also, it's not a good idea to display symbols this way. Read
<http://ppewww.ph.gla.a c.uk/~flavell/charset/fontface-harmful.html>.
This page work within an intranet where the font "3 of 9 barcode" is
installed on all clients.


Then it's not really on-topic for a WWW group; but there is an
important principle, which is relevant here too.
The real problem is:
No, the -real- problem is the one described at the cited URL.
why the selector defined above visualize properly the symbols in IE and
Opera,
Wrong - those browsers do what you -want-, and -not- what you asked
for.
and not in Gecko browsers?
Gecko browsers do what you asked for, which is -not- what you want.
Thanks for your answer


I think you would have to be advised to use the user-defined character
coding. Unfortunately this too causes some problems, but it is, at
least, tolerably specification-conforming. My page(s) say something
more about this.
Jul 20 '05 #4
Alan J. Flavell wrote:
On Wed, 7 Jul 2004, Emanuele Calo' wrote:
Matthias Gutfeldt:
Also, it's not a good idea to display symbols this way. Read
<http://ppewww.ph.gla.a c.uk/~flavell/charset/fontface-harmful.html>.

[snip]

No, the -real- problem is the one described at the cited URL.
why the selector defined above visualize properly the symbols in IE and
Opera,


Wrong - those browsers do what you -want-, and -not- what you asked
for.
and not in Gecko browsers?


Gecko browsers do what you asked for, which is -not- what you want.

Touchè... it's true
Thanks for your answer


I think you would have to be advised to use the user-defined character
coding. Unfortunately this too causes some problems, but it is, at
least, tolerably specification-conforming. My page(s) say something
more about this.

Yes! I apologize for my hurried response in the previous post...
I begin to read your article...
Thanks
Emanuele Calò

Jul 20 '05 #5
Matthias Gutfeldt wrote:
Your safest bet is to create an image of the bar code server-side.
Creating a proper ALT text could be a problem, of course.


Isn't the bar code a graphical representation of a catalogue number of
some sort? If so, then alt should be set to that number.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
Alan J. Flavell <fl*****@ph.gla .ac.uk> wrote:
I think you would have to be advised to use the user-defined character
coding. Unfortunately this too causes some problems, but it is, at
least, tolerably specification-conforming. My page(s) say something
more about this.


Admittedly, relying on particular fonts is a bad idea, but I'm not 100%
convinced that this case necessarily violates the specs. It isn't the same
thing as pretending that <font face="symbol">a </font> is a Greek alpha,
rather than a Latin a. The barcode font really does display the characters
found in the document, albeit in a rather atypical way.

I guess I see it as being similar to a fantasy font that represents the
letter a as an aardvark posed to look like the letter a, the letter b as a
babboon posed to look like the letter b, etc. Sure, you wouldn't want to
use it for normal body text, but it isn't a dingbat font. It really is
representing the characters that it claims to be representing.

Now, it may be that the OP's particular barcode font is buggy, and
identifies itself as a dingbat font or something similar, in which case
browsers should ignore it for normal Latin characters. But that's a
separate issue from whether a barcode font *could* legitimately claim to
represent normal Latin characters.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"How long is this Beta guy going to keep testing our stuff?"
Jul 20 '05 #7
On Wed, 7 Jul 2004, Darin McGrew wrote:
The barcode font really does display the characters
found in the document, albeit in a rather atypical way.
Thank you for making that point! You certainly have some logic on
your side, indeed.
I guess I see it as being similar to a fantasy font that represents the
letter a as an aardvark posed to look like the letter a, the letter b as a
babboon posed to look like the letter b, etc. Sure, you wouldn't want to
use it for normal body text, but it isn't a dingbat font. It really is
representing the characters that it claims to be representing.
Yes, that figures. So I suppose we need to know more about the font
itself and why (as we were told) Gecko-based browsers didn't consider
it eligible to be used in the situation that was being tried.
Now, it may be that the OP's particular barcode font is buggy, and
identifies itself as a dingbat font or something similar, in which case
browsers should ignore it for normal Latin characters.


If we're talking about a Windows platform, then some investigation
with the MS "Font Properties Extension" would be handy.
http://www.microsoft.com/typography/...roperty21.mspx

In particular - looking at what the "CharSet/Unicode" tab reports for
this font.

Funnily enough, I think my suggestion of "user defined" encoding might
turn out to give the desired result after all (even if my argument
which led up to it might have been misplaced in this instance!).

thanks again
Jul 20 '05 #8
*Brian* <us*****@juliet remblay.com.inv alid>:
Matthias Gutfeldt wrote:
Your safest bet is to create an image of the bar code server-side.
Creating a proper ALT text could be a problem, of course.


Isn't the bar code a graphical representation of a catalogue number of
some sort? If so, then alt should be set to that number.


If "3 of 9 Barcode" is in fact a Code 39 barcode font, it can encode
digits, the uppercase English letters and seven more characters (-$% ./+).
The 'alt' text should of course consist of the characters that are
barcoded.

<http://en.wikipedia.or g/wiki/Code_39>

--
I'm a signature virus, help me spread!
Jul 20 '05 #9
> On Wed, 7 Jul 2004, Darin McGrew wrote:
The barcode font really does display the characters
found in the document, albeit in a rather atypical way.
Alan J. Flavell wrote:
Thank you for making that point! You certainly have some logic on
your side, indeed. Darin McGrew wrote:
I guess I see it as being similar to a fantasy font that represents the
letter a as an aardvark posed to look like the letter a, the letter b as
a babboon posed to look like the letter b, etc. Sure, you wouldn't want
to use it for normal body text, but it isn't a dingbat font. It really is
representing the characters that it claims to be representing.
Alan J. Flavell wrote:
Yes, that figures. So I suppose we need to know more about the font
itself and why (as we were told) Gecko-based browsers didn't consider
it eligible to be used in the situation that was being tried. Darin McGrew wrote:
Now, it may be that the OP's particular barcode font is buggy, and
identifies itself as a dingbat font or something similar, in which case
browsers should ignore it for normal Latin characters.


Emanuele Calò:
here is a font that display properly barcode characters on Gecko-based
browsers and IE, Opera, etc.:
http://www.barcodesinc.com/free-barcode-font/

Jul 20 '05 #10

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

Similar topics

11
7175
by: Lutz | last post by:
Hello, I'm setting up a barcode system for a storage-database. Now I'm looking for a free (cheap) solution to print barcodes using reports. I'll have to show the barcode to the screen before printing (wasn't my decision). I found two possibilities - using tt-fonts - using an active-x-control
3
3055
by: Doug Swanson | last post by:
I need to create a report via a aspx page/datagrid and have the user be able to print it out and have certain fields have the 3of9 barcode font....is this possible in an aspx page (or for that matter html?) I know you can set the font of the page etc.. but can the font of a particular field in a datagrid be set? We do have a datagrid component that can export itself to Excel...is there something in Excel (template?) that can be used to set...
1
2655
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the client then allows the user to print the report on a networked printer. To avoid having to launch an external application on the client I use a server-side print method. When I call ReportDocument.PrintToPrinter the report comes out fine but the...
6
2196
by: Big D | last post by:
I am working on an online promotional deal for a client where I need to be able to create a barcode that can be redeemed at checkout of one of their branch stores. Has anyone worked with this before? It seems pretty straitforward in terms of genrating the barcode dynamically from the numbers I'll be given, but doesn't a barcode have to print at a particular size and resolution in order to work? I was thinking of generating the barcode...
11
3164
by: youngster94 | last post by:
Hey all, I've written a VB.Net app that creates picture badges complete with barcodes. The problem is that the barcode quality is not good enough to be read by scanners. I'm using the DRAWSTRING function to place the barcode on the image, but no matter what graphics settings (.InterpolationMode/.CompositingQuality etc.) I manipulate, the barcode image remains poor quality. For exaple I'm using a solidbrush that is black, but some of...
6
3388
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
4
4303
by: madunix | last post by:
I am in the process to create an online form using PHP with DB Oracle or MySQL, this form which consist of 2x parts personal data and finance data, and it will be filled by the users, once the form is filled and submitted , it will be saved to the system as reference and printed as hardcopy it could be a pdf or not, but the print format will be on A4 format hardcopy with printed random generated (internal calculation) bar code printed on...
2
9982
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully be scanning a barcode which will communicate to the computer that the employee did some type of task. Employees will be identified by ID badges which will contain string data to identify them and hopefully log them in. Is this a good way to keep...
2
3338
by: sam | last post by:
can someone show how to change print font width & heigh scaling? I am writing a code for barcode printing on smaller label. I do not want change font size, because this may cause the bar code reader could work well is bar code is too small, I want to keep same font heigh but smaller font width? is it possible to do that?
0
9715
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9175
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.