-
embedding pixel fonts
I have never come across this problem before, i am using a pixel font for dynamic text but when i embed it some of the lines of text are crisp and some are blurry, any ideas? the textboxs are all on pixel co ordinates. cheers.
-
Senior Member
ensure that your text fields or movie clips haven't been resized
-
fraid not, i have looked around on the net and it seems that some pixel fonts just won't embed properly. I am getting around it by having all the dynamic text in a different swf and publishing it at low quality then layering it on top. Thanks for the advice though
-
Senior Member
if you use one of the FFF fonts, even a freebie, we'll help you correct it
-
cheers for that, most of the fff fonts i have no trouble with, you lot are doing some good work over there Thanks.
Last edited by jaybirch; 06-10-2004 at 07:46 AM.
-
Senior Member
ok, cool
-
Special Member
Embedding fonts and movie size
I am using some pixel fonts as dynamic text and there are many text dynamic text fields I want to ask that will I have to embed each dynamic text box? in that case movie size will increase.
[Illustration][Commercial Designing]
[Textile Designing][Large Format Printing] [Web Designing]
-
Senior Member
Yes, you need to embed each and every font. To make the size smaller, try to limit the ranges of characters that you embed when possible and publish with 'compress movie' selected.
-
Special Member
now I will embed all the text fields
Thanks
[Illustration][Commercial Designing]
[Textile Designing][Large Format Printing] [Web Designing]
-
Dear FFF, I am also having the same problem as the OP and I can't seem to figure out how to fix the problem.
I am currently using FFF Harmony, all my positions for the textfields and movieclips are at 0x, 0y(and if they aren't they are in mutiples of 8 like 16, 160). I use Math.floor to get whole numbers for every calculation and I am also using CSS as my stylesheet and XML for the content.
Currently my date fields are all blurry and should at least be crisp/clear even though when I trace them they are exact y-coordinates as the news column. Now the news column has text that is both crisp/blurry and I have not been able to figure it out. The text is embedded and when of course when it's not embedded and on my machine everything is crisp/clear.
Code:
txtXML = new XML();
txtXML.ignoreWhite = true;
txtXML.onLoad = function(success) {
if (success) {
parseXML(this);
}
};
function parseXML(xmlDoc) {
//if (xmlDoc.firstChild.nodeName.toLowerCase() == "content") {
var newsData = xmlDoc.firstChild.childNodes;
var titlesData = new Array();
var descData = new Array();
var entrySize = newsData.length;
_root.totalItems = entrySize;
//trace(entrySize);
for (i=0; i<newsData.length; i++) {
// newPiece._x = i*newPiece._width;
titlesData[i] = newsData[i].firstChild.firstChild;
descData[i] = newsData[i].firstChild.nextSibling.firstChild;
}
contentCreateDesc(entrySize, descData);
contentCreateDate(entrySize, titlesData);
gotoAndStop(_currentframe+1);
delete txtXML;
// end if
}
// End of the function
contentCreateDate = function (duration, dateData) {
for (i=0; i<duration; i++) {
this.createTextField("date"+i, i+100, 16, 0, 80, 80);
this["date"+i].autoSize = true;
this["date"+i].multiline = true;
this["date"+i].wordWrap = true;
this["date"+i].border = false;
this["date"+i].html = true;
this["date"+i].align = "left";
//this["date"+i].embedFonts = true;
this["date"+i].embedFonts = true;
this["date"+i].styleSheet = xmlCss;
this["date"+i].htmlText = dateData[i];
this["date"+i]._y = Math.floor(this["news"+i]._y);
//trace (this["date"+i].htmlText);
}
};
contentCreateDesc = function (duration, nusData) {
diffHeight = 0;
for (i=0; i<duration; i++) {
this.createTextField("news"+i, i, 160, 0, 80, 80);
this["news"+i].autoSize = false;
this["news"+i].multiline = true;
this["news"+i].wordWrap = true;
this["news"+i].border = false;
this["news"+i].selectable = true;
this["news"+i].html = true;
this["news"+i].align = "left";
//this["date"+i].embedFonts = true;
this["news"+i].embedFonts = true;
this["news"+i].styleSheet = xmlCss;
this["news"+i].htmlText = nusData[i];
this["news"+i]._width = Math.floor(Stage.width*0.55);
this["news"+i]._height = Math.floor(this["news"+i]._height);
//this["news"+i]._y = this["news"+i]._height + eval(this["news"+(i+1)])._height;
}
startHeight = Math.floor(news0._y);
diffHeight = Math.floor(startHeight+this["news"+i]._height);
for (i=0; i<duration; i++) {
this["news"+i]._y = Math.floor(diffHeight);
diffHeight = Math.floor(this["news"+(i)]._height+this["news"+(i)]._y+8);
}
};
stop();
txtXML.load("content.xml");
var xmlCss:TextField.StyleSheet = new TextField.StyleSheet();
xmlCss.onLoad = function(success) {
if (success) {
} else {
myText.text = "Stylesheet not loaded!";
}
};
xmlCss.load("flashbody_embed.css");
Any help is much appreciated and may save me hours of frustration
-
Okay I now have the date text crisp/clear except when it approaches closer to the bottom they get blurry.
Also for the news only text on the far right are blurred but on the left side its all clear/crisp(this is what is driving me mad).
I'm also using a scroll of all the text.
-
Senior Member
You can email me the problematic file or post it here and I'll fix it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|