Html :: Way To Use Custom Font File In Site?
Oct 8, 2010I can use @font-face but it does not work in all browsers.Are there any way to use custom font file in my site ?
View 1 RepliesI can use @font-face but it does not work in all browsers.Are there any way to use custom font file in my site ?
View 1 RepliesI'm trying to embed a font in my project by using url("font.ttf") rather than local("Font Name"), but it doesn't seem to pick it up. The font in question is called "Gotham Bold". When i view the details of the font, the font weight is regular, however when i use local("Gotham Bold") in the css i have to specify fontWeight: bold or else it wont pick it up. But when I use url("folderGotham-Bold.ttf"), and specify fontWeight: bold, it says that font weight is not found for that TTF. If i remove the fontweight, there's no errors, but the font is not applied to the text.
View 2 Repliesi have created an animation and when saved in notepad as an html file everything looks as it should when previewed in any browser, however when i paste the code into my site via dreamweaver the animation dose not appear.
View 22 RepliesI have an HTML page with buttons. Each button needs to have a getURL to open the Flash site, but then somehow, needs to also load the appropriate swf into that Flash site... My reasoning is because I have some scripts under my site that need to be in HTML (or PHP) for search engines, that way I don't have to do the whole site in HTML.. I hate having a HTML index page, but it's the only solution I could come up with. So, when a visitor selects any of the navigation buttons, I don't want them to have to select that button again, when the Flash site loads. how to do this for Flash 7 / AS 2.0? Or if there are any posts here about it?
View 2 RepliesI was wondering if its still necessary to build a html site aswell as a Flash Site? Or is there a definitive and failsafe way to incorporate html into my flash site? SEO is a very important factor for me. I read this article: url...by Geoff Sterns in 2006, resulting in the following[code]
View 4 RepliesI have imported a font into the Flash library in an FLA file this way in the New font symbol dialog box:
[Code]....
I'd like to assign this font to a TextFormat instance, but as you can see, something is wrong or missing. But what?
I've searched the web and tried a number of different approaches to embed a font in my Flash movie but each has ended in frustration. I have created several buttons with dynamic text fields that use the font I need. I have added the font to my library, given it a unique name, exported for actionscript and then used the unique name when selecting the font in my dynamic text fields. I am probably not using the right AS code to embed and use the font. What's the easiest way to embed the font? I am also using the same embedded font in a around 5 flash movies on the site.
View 5 RepliesI tried hours trying to change my website to Arabic language but the arabic text not loading.example:
<?xml version='1.0' encoding='utf-8'?>
<template>
<mainmenu
[code].....
I'm using a custom tooltip in order to be able to use html tags. The method I used is described here.I'm using SDK v.3.5. I also did a little hack so that the TooltipManager.tooltipClass would work (check this post for more details).Here's some code.
HtmlTooltip.as:
public class HtmlTooltip extends ToolTip
{[code].....
Everything works fine BUT 2 things: First, font colors tags don't work. If ever I use sth like <font color='0xadadad'>...</font> it won't work. However, if I use <u>...</u>, it works fine
Second, the <a href='...'>...</a> does not work either. I checked in several websites, and the solution would be to set the selectable property of the text to true.
I'm noticing that my embedded font is not properly displaying when I browse to certain portions of my site with my other office pc's. The "about me" section of [URL] in particular. What's confusing is that the other portions of the site do display the font properly!?! I've uploaded the original .fla file to the server for anyone that's really interested in helping. It can be downloaded at [URL]
View 2 RepliesWanting to know how to use a custom font in my flash app (written mainly using AS3). When I try to add a font into the library, it only lets me choose from the installed fonts on the computer. Whilst I can get this working, I understand that if someone else goes to use this on their computer, the font will not display?
View 1 RepliesI'd like to add a custom video to my site. This video is about 200px square and has semi-transparent controls on on the bottom third (play, pause, progress bar). See attached image. There is a sound track. It is short (45sec) and I want to host it on my site (not youtube).
Attachments: custom_video_player.png (21.9 K)
While creating one photo gallery I am facing one problem in controlling the Font Color, Font Size and other characteristics of a text loaded into a text field from an XML File. The name of the text field in question is �my_txt� it loads the title from the xml file attached herewith. how I can control the behavior of the text loaded in that text field.
[Code]...
I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?
View 3 RepliesI want to display "Hello World" with calibri.ttf using only AC3. How would I do that?
View 3 RepliesHow can I set a custom font while creating a link with TLF text? Here is my code:
[Code]...
Everything works fine but I would like to use:
- Helvetica Neue Bold as my custom font
- Add tracking or letter spacing
- Embed the font in my swf
With reference to the subject, I am using the following statement to embed the font within my custom class:
Code:
[Embed(systemFont = "Verdana",
fontName = "VerdanaReg",
[code]......
In my flash project I use a CSS formated text field. And today I found a really nice font for it on the web. Is there a way to make the field display that font even on computers which don't have it installed?
View 1 RepliesI've come across a potential issue that I think I will be able to solve, although it seems to be to be something that may already have a solution, so I thought it best to save time and check.
I'm basically looking to create a menu where the labels are highly detailed and visually pleasing. The problem is that each and every label needs to be dynamically generated so that the menu is shown in the correct language.
My issue is this: is their a method in flash of defining letters for use as a font that aren't just flat colours? Imagine taking each letter into an image editing program, applying some effects to it, then important them all into flash as graphics/bitmap data. Could those graphics then be defined as letters in a font so that, when the swf is handed the string, it can create the dynamic label from my lovely looking alphabet?
I have a few ideas on how to implement a system using arrays and swapping the dynamic textfields for dynamically created movies, but that would mean building it from the ground up, something which may not be necessary if something similar already exists.
Anyway, I look forward to your replies; this forums has unknowingly solved a large number of my problems in the past, and acted as a safety rope as I learnt AS3. Now that I am on this forum I will likely try and take some time to give something back and help out other beginners, at least I will do when my thesis is finished
I am creating a textfield using this code:
window_title = p.createTextField("border"+diepixWindow.NextBorderDepth, p.getNextHighestDepth(), wx1+TITLE_OFFSETX, wy1+TITLE_OFFSETY, ww, 64);
var fformat:TextFormat = new TextFormat();
fformat.font = "TF2 Build";
[code].....
But the problem is, if the client doesn't have the "TF2 Build" font, the font will be Times New Roman.I would like to know to attach the font to the .swf file.
I want to display "Hello World" with calibri.ttf using only AC3. How would I do that?Found two solutions on the web but I cannot use any of them
- The Adobe documentation site requires the use of Flash CS4. (Don't know how to use this in Flex Builder)
- The embed tag method requires FLEX SDK
Is it possible to embed font with purely Actionscript 3 in an actionscript project using Flex Builder?
ok so i have drawn some letters up, this way i can have everything looking just the way i like. i was going to put it in as an image but then it hit me, what if i wanted the user to be able to select the text? so i wanted to ask if there was a way you could make it act like a textfield. i was thinking it finds the character value and gives a value of 1-26. 1 being a and 26 being z. then it adds the movieclip to stage, changes to the frame relying on that value i just mentioned and positions itself accordingly.but what i haven't thought of yet is how you'd make it selectable.
View 4 RepliesSo I have an input TextField and I'm wanting to use a custom font for it. I tried to use setTextFormat() with a TextFormat object, which does not make any difference. When setting embedFonts to true, Nothing at all gets displayed. I know the problem isn't with the TextFormat object, because I can apply the same format to a regular TextField and it works
View 1 RepliesI am trying to create a combobox where the items listed in the combobox are font names and each item will display using the font of the item label. For instance, one item label in the list is "New Times Roman" and I want that particular row in the combobox to have the text AND font of "New Times Roman". For some reason, inside of my custom CellRenderer class, I cannot seem to find a way to get the item label that corresponds to the CellRenderer and the CellRenderer.data item always appears to be null!
This is the code I am currently using:
//From the main class, I am creating an instance of the
CustomizableComboBox and adding in the font names I am interested
in.
var comboFont:CustomizableComboBox=new
[Code]....
So we have a component we have written ourselves that deals with text display and translation between languages, reading translations from a file. Ideally what we would like to do is have this component be compatible with any font we can embed in the main .swf's library. What's the best way to do that?
Currently we are going down the route of having our component have an attribute for the font name, lets say 'Font1'. We drag the component into the .FLA file we want and then add a new font to the library called 'Font1' and set it to the typeface we want. This is proving to be inconsistent and problematic which implies it's not really an ideal way of doing it.
Is there anyway to achieve the feature we want? The key is flexibility, we want to easily support languages (hence the component) but we don't want design to be limited in their font selection. Its not practical to embed a range of fonts in the component for example, as it adds to file size and is restrictive.
Similar to PHP and GD Library I want the SWF to load the query string and display it in a custom font.for example
header.swf?word=NEWS
And it would display NEWS in my certain font that is embedded in the clip How do i load a query string?
I am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):
a:link {text-decoration: none;}
a:active {text-decoration: none;}
a:visited {text-decoration: none;}[code]....
Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.
in the attachment, you'll see the text display is quite awful despite the fact I embed Arial font in my application.
View 2 RepliesI want to make a text highlight in flex textArea but its htmlText doesn't support <font bgcolor='#FFFF00'> part of my text </font> so I'm searching for a font witch is the opposite of Courier new, when I embed it in flash, and write with that color I get highlight effect for that part of my text , as I type <font family="negativeOfCourier" color='#FFFF00'> part of my text </font>
View 2 RepliesI am looking all over the internet the whole day now without any succes on getting this to work:
Code: Select allpackage {
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageQuality;
[Code].....
I want to use simple html and css to style a simple text field with an embedded font.... there seems to be no way. Can someone tell me how to get this to work?