Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Does Opus Browser object ignore certain html style settings
PostPosted: April 29th, 2010, 11:03 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I cannot seem to get a Browser object to display a larger font. I am simply using inline styling in some simple .html files. I can edit the html and change the font colour (color), but not the font size.

These different attempts have no effect:
font-size: 2.6em;
font-size: 250%;
font-size: 20pt;

All I want to do is set the size in the html file, not alter size at runtime. (although if the User had Ctrl_+/Ctrl_- that would help a bit/workaround).

Any ideas?

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 29th, 2010, 2:47 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Hi Larry

Try adding something like the following to the html code:

<font size="2" face="Verdana">
</font>

Obviously, you'll need to change the number and typeface according to your preference.

Regards

Roger

_________________
Opus Pro 7.1, Windows XP Pro SP3, 1.99 Ghz Athlon XP, 1 GB RAM, 500 GB HD


For this message Roger Dunton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 29th, 2010, 11:52 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Thanks Roger.

So tried that (apply as in-line style), but no change to the text size.
Tried a few variations but no luck. Again, color and font-face do change. Size does not.

I also tried as embedded style (which is what I will prefer to do). But same story... no change to font size.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Title Is Here</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #FFD700}
body, table, span.rvts0
{
font-size: 12pt;
font-family: 'Verdana';
font-style: normal;
font-weight: normal;
color: #dc143c;
text-decoration: none;
}
span.rvts1
{
font-size: '4';
font-family: 'Times';
font-style: normal;
font-weight: normal;
color: #556B2F;
}
--></style>
</head>
<body>
<p><span class=rvts0>First paragraph of text... first paragraph of text.</span></p>
<p><span class=rvts1>This is just a simple paragraph of text and it should have style controlled by the 'embedded style' above in html source.</span></p>
</body></html>


For font-size settings, none of these works: e.g., "2" or 22pt or 3.5em or 250% (with or w/o quotes).

If anybody cares to test it, the code above can be Copy/Pasted and saved as a complete html file. TIA

[Lar EDIT:] After more playing with this, I find Internet Explorer (8.0.6001) also does not respond to font-size change as written above. However, Firefox (3.0.4) does react to font-size style settings.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 30th, 2010, 1:32 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Update.
I have got it working with a simple change of IE8 settings.
I found this support article at Microsoft. http://support.microsoft.com/?id=181502
However it says to 'check the box' --- mine was already checked, so I 'unchecked' it. Now the Browser object in Opus is responding to changes in HTML font styles, as does IE itself.
FYI, another point of info... browser shortcuts for zooming in IE do not affect Opus Browser object (that is, no Ctrl_+ or Ctrl_- )

Quote:
Article ID: 181502 - Last Review: January 22, 2007 - Revision: 4.2
You May Not be Able to Change the Font Size in Internet Explorer
This behavior can occur if the Web page you are viewing specifies an absolute font size (either via the HTML code or a style sheet). By default, Internet Explorer does not change the font size on a Web page that uses absolute (instead of relative) font sizes.

To work around this behavior, configure Internet Explorer to ignore font sizes specified on Web pages:
1. Start Internet Explorer.
2. On the Tools menu, click Internet Options.
3. On the General tab, click Accessibility.
4. Click to select the Ignore font sizes specified on Web pages check box.
5. Click OK twice.

(Mods, if I should not be quoting this, let me know I'll edit)

Anyway, learn something every day or two. I must have missed yesterday!

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 30th, 2010, 9:23 am 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
If changing the IE8 settings works - great. But I don't think you should need to do this. You might try inserting the following into your html:

font-size: 12px;

_________________
Opus Pro 7.1, Windows XP Pro SP3, 1.99 Ghz Athlon XP, 1 GB RAM, 500 GB HD


For this message Roger Dunton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 30th, 2010, 1:51 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
font-size: 12px;

Nope. I still needed to tweak the Internet Explorer "Accessibility" settings.

So I am just adding that as a future reminder/to-do for myself. Will have to instruct Users to make that change if they want font control in the Pub.

[Lar EDIT:] Adding screenshot of the "Accessibility" settings dialogue -- for reference & easy find.


You do not have the required permissions to view the files attached to this post.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Last edited by Lar_123 on April 30th, 2010, 10:11 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Does Opus Browser object ignore certain html style setti
PostPosted: April 30th, 2010, 2:40 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Strange. Sorry it didn't work, Larry.

_________________
Opus Pro 7.1, Windows XP Pro SP3, 1.99 Ghz Athlon XP, 1 GB RAM, 500 GB HD


For this message Roger Dunton has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group