Unable to load embedded fonts in Textlayout Framework using SWFContext.
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries".
and checked with Flash player version 10.1 and 10.2 and 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in ActionScript Project it shows the embedded text.
But, when I load the slide1.swf in MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below red colored text is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass();
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
And, when I load the slide1.swf in Only MX Flex Poject, it shows the embedded Font.
Using Flex 4.5 SDK:--
With MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.
Hi Jin-Huang
But when I use Simple ASProject with SDK 4.1 then it works fine but when I create Flex project then it give error
with SWFContext.
I think it's a issue of swfcontext or AS comunication with Spark components.
Please let me know if any solution.
Thanks
Similar Messages
-
Unable to load embedded fonts in TlF / FlowLeafElement
dears,
I use TextFlowUtil.importFromString and FlowLeafElement to make each some text have its own style, every some words have diffirent color, fontFamily, fontSize....etc
that is done here in the text attribute in this xml tag, and TextFlowUtil.importFromString and FlowLeafElement make taht perfect:
<TextArea text="<div direction="rtl">
 <p textAlign="right">
 <span fontFamily="ttf" fontSize="16" color="#FFE000E0" >Welcome to Android Training. Here you'll find a collection of classes that aim to help you build great apps for </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE000E0" >Android, using best practices in a variety of framework topics.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">Each class explains the steps required to solve a problem or implement a feature using code snippets and </span>
 <span fontFamily="Arial" fontSize="16" color="#FFE00000">sample code for you to use in your apps.</span>
 </p>
 <p></p>
 <p textAlign="right">
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">What you see now is just the beginning. We plan to add many more classes, expand and refine existing </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes, and build Training Courses that help you enhance your apps using objective-oriented collections of </span>
 <span fontFamily="Arial" fontSize="16" color="#FF00E000">classes.</span>
 </p>
</div>" direction="rtl" styleName=".textAreaTitle" editable="false" selectable="true" scrollable="false" mainReferance="UI.Components.Basics.TextArea" />
The problem is that i need to embed fonts, by this fontFamily="Arial" you can set font name which you want, but if i set font name which is embedded it won't work, like : fontFamily="ttf"
the embedded code is :
[Embed(source='/Resources/majallab.ttf',fontName='ttf',mimeType='application/x-font',embed AsCFF='true')]
var font1:Class; //This is only used to compile the code
I use Flex SDK 4.5,
what can i do ?
Thank you in advance,
amtTo use embedded fonts in a Flex component, the fontFamily for the component needs to be set to an embedded font that is in the same SWF as the other embedded fonts in the TextFlow. See my blog for more details
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui -
Unable to load embedded fonts in TLF using SWFContext
Hi,
We are having issues with embedding/renderring fonts in swf.
Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-libraries". and using Flash player version 10.1, 10.2 & 10.3.
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
public static const calibri:Class;
[Embed("slide1/sldBg1.png", mimeType="image/png")]
public static const bg:Class;
[Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
public static const slide:Class;
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
Using Flex 4.1 SDK:--
When I load the slide1.swf in FB4 ActionScript Project it shows the embedded text. // Output is fine
But, when I load the slide1.swf in FB4 MX+Spark Flex Project, it gives an error :
Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
Below is the code where the exception occurs.
var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("Slide1") as Class;
textFlow.flowComposer.swfContext = new fontClass(); // Exception occurs here
textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));
textFlow.flowComposer.updateAllControllers();
textFlow.flowComposer.composeToPosition();
And, when I load the slide1.swf in FB4 MX Flex Poject, it shows the embedded text. // Output is fine
Using Flex 4.5 SDK:--
With FB4 MX+ Spark and MX only Flex Project we get following errors
VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.We use this for fonts ---- textFormat.fontLookup = FontLookup.EmbedCFF;
For showing the fonts we use the line of code :--
textFlow.flowComposer.swfContext = new fontClass();
which throws an error
Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. ! -
Unable to apply embedded font swf to text in text layout framework
Hello,
We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).
We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.
When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.
Following is a snippet of code to apply the font to the text:
private function selectFont(fontXML:XML):void {
var path:String = fontXML.@source;
var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGl obals.topLevelApplication.url.lastIndexOf("/"))+"/"+path);
myEvent.addEventListener(StyleEvent.COMPLETE, function(event:StyleEvent):void{
var editManager:EditManager = textFlow.interactionManager as EditManager;
var itextLayout:TextLayoutFormat = new TextLayoutFormat();
itextLayout.fontSize = 20;
var fontName:String = fontXML.@name;
Alert.show(fontName);
itextLayout.fontFamily = fontName;
Alert.show( "itext = " + itextLayout.fontFamily);
editManager.applyFormat(itextLayout,itextLayout,itextLayout);
var flowLeafElement:FlowElement = textFlow.findLeaf(editManager.anchorPosition) as FlowElement;
editManager.changeStyleName(fontName,flowLeafElement);
Can anyone please let us know what is missing in the implementation?
Thanks in advance.
VikramMy recommendation: unless you really care about ISWFContext implementations and the application domain issues, ignore Alex's post about embedded fonts.
It is a nice discussion about the inner workings of the domain and security of how this works but it is imho broken and is an insane concept to require an ISWFContext to just use an embedded font. It also breaks runtime CSS loading that has fonts embedded in it because the Flex compiler (last I checked) was also busted – it doesn't include the function necessary to create within context the font embed so that it may be applied. You can't create an ISWFContext with a compiled CSS file.
These issues were introduced in the last Flex SDK beta before FB4 was released in final form. There are multiple bugs logged against the issue of applying loaded font files to TLF text (in short, SWFContext is broken and you have to override GlobalSettings.resolveFontLookupFunction to return embedded or null, all the time).
Here's some more details to get you started - with links to at least one of the SDK bugs that were filed:
http://forums.adobe.com/message/2656152
For example:
import flashx.textLayout.elements.GlobalSettings;
import flash.text.engine.FontLookup;
GlobalSettings.resolveFontLookupFunction = function makeValid():String { return FontLookup.EMBEDDED_CFF };
And you may need to do this after your font is loaded:
yourTextBlock.textFlow.invalidateAllFormats();
Disclaimer: I haven't seen the latest Flex SDK release to see if this was fixed. I have an AIR application with native process that builds embedded font SWF files for use and stub code for FB4 usage but haven't updated to the latest SDK yet to see if it's working properly.
Anyhow, your best bet is to look at the Flash Builder forums. I think this is/was a Flex team issue, not TLF. -
I cant download apps. It keeps sayin 'unable to load. Try again later' I use my iphone to download. How do i get it to work?
1. Read the manual.
2. Contact yoru wireless provider. -
How to use dynamic loaded embeded font?
I have loaded fonts.swf on startup. I don't use TextLayout
Embeded fonts feature. Then i have loaded some xml and assign xml
to TextLayout. How I can use loaded font for display?Are you using Flash CS4 or Flex?
Check out the following blog post, it contains instructions
for font embedding that may help you out:
Embedded
Font Subsetting Using DefineFont4 -
Unable to load wingdings font to button
Hello Everyone,
Need help. I tried to load wingdings font to button, to display symbol. However seems like the button still display wording and unable to load the wingdings font. I 'm able to load other font except wingdings, wingdings 2.
Button btn = new Button();
//Font lcd = Font.loadFont(JFXTestButton.class.getResourceAsStream("wingding.ttf"),14);
Font lcd = new Font("Wingdings",54);
btn.setText("abc");
btn.setFont(lcd);
ThanksWingdings does not appear to work => bugs can be filed at http://javafx-jira.kenai.com
-
Unable to load embedded PDF - must change settings for all users
Hello. We recently updated to Adobe Reader X on our three terminal servers. Since the update we have found that a lot of our users are having an issue loading PDF's that are embedded in web sites.
They access different websites that have such features and the PDF must be displayed in the browswer for it to load correctly. Anyways, I have properly found what settings to adjust in Adobe Reader, my issue is that I need these settings adjusted for all 50 something employees and I really don't want to log into each user account and change the settings.
The settings that must be adjusted are as follows:
Edit > Preferences > General > Uncheck Enable Protected Mode at Startup
Edit > Preferences > Internet > Uncheck Display in Read Mode by Default
Edit > Preferences > Internet > Uncheck Allow fast web view
Edit > Preferences > Internet > Uncheck Allow speculative downloading in the background
I have found the registry files for the Protected Mode startup and Display in Read Mode, but am unable to find the other two registry settings. Does anyone have any idea where those might be? Or if you have a better suggestion on how to deploy Adobe with these settings already configured? I have looked in the Customization Tool but was unable to find all the settings there as well. Thanks!Acrobat is not permitted to run as a server process.
Licenses are assigned to individual users, each of whom must have their own serialized copy. -
Embedding fonts in exported PDF using CR 8.5
Post Author: MikeScott
CA Forum: Exporting
Hi,
Does cr8.5 have facility to embed fonts in exported PDF documents?
I have got font embedding working on one PC but can't get it to work on other client PCs. On the PC where embedding works I have the following dlls:
crxf_pdf.dll v9.1.1.534
craxdrt v8.5.0.217
Any advice appreciated.
MikeLittleNFiesty wrote:
I have my answer.
What is it?
Ken -
Unable to load data to Hyperion planning application using odi
Hi All,
When I try to load data into planning using odi, the odi process completes successfully with the following status in the operator ReportStatistics as shown below but the data doesn't seem to appear in the planning data form or essbase
can anyone please help
org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
File "<string>", line 2, in <module>
Planning Writer Load Summary:
Number of rows successfully processed: 20
Number of rows rejected: 0
source is oracle database
target account dimension
LKM SQL TO SQL
IKM SQL TO HYPERION PLANNING is used
In Target the following columns were mapped
Account(load dimension)
Data load cube name
driverdimensionmetadata
Point of view
LOG FILE
2012-08-27 09:46:43,214 INFO [SimpleAsyncTaskExecutor-3]: Oracle Data Integrator Adapter for Hyperion Planning
2012-08-27 09:46:43,214 INFO [SimpleAsyncTaskExecutor-3]: Connecting to planning application [OPAPP] on [mcg-b055]:[11333] using username [admin].
2012-08-27 09:46:43,277 INFO [SimpleAsyncTaskExecutor-3]: Successfully connected to the planning application.
2012-08-27 09:46:43,277 INFO [SimpleAsyncTaskExecutor-3]: The load options for the planning load are
Dimension Name: Account Sort Parent Child : false
Load Order By Input : false
Refresh Database : false
2012-08-27 09:46:43,339 INFO [SimpleAsyncTaskExecutor-3]: Begining the load process.
2012-08-27 09:46:43,355 DEBUG [SimpleAsyncTaskExecutor-3]: Number of columns in the source result set does not match the number of planning target columns.
2012-08-27 09:46:43,371 INFO [SimpleAsyncTaskExecutor-3]: Load type is [Load dimension member].
2012-08-27 09:46:43,996 INFO [SimpleAsyncTaskExecutor-3]: Load process completed.Do any members exist in the account dimension before the load? if not can you try adding one member manually then trying the load again.
Cheers
John
http://john-goodwin.blogspot.com/ -
Embedded fonts not working in Air for ios
hi
am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
here is the code of my embedded fonts and we are using TLF for text output:
....inside my loaded swf: -
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
please help asap!
thankshi
am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
here is the code of my embedded fonts and we are using TLF for text output:
....inside my loaded swf: -
package
import flash.display.Sprite;
import flashx.textLayout.compose.ISWFContext;
public class Slide1 extends Sprite implements ISWFContext
[Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
if (returns)
return fn.apply(thisArg, argsArray);
fn.apply(thisArg, argsArray);
please help asap!
thanks -
Missing characters in CFF embedded fonts
Our application loads embedded fonts on the fly. I'm in the process of converting our text handling to FTE and switching over to CFF fonts, but I've noticed that for a couple of fonts, there are characters that are damaged, or missing entirely. The same text renders correctly when the font is installed as a system font, and also when it's embedded in the non-CFF format, so CFF embedding is choking on something, but I have no idea what. Nor do I see a lot of knobs that I can twist to control the CFF output.
For example, Budmo Jiggler (http://www.dafont.com/budmo-jiggler.font). When embedded as CFF, the letter "B" isn't rendering correctly:
This occurs in both the 10.3 and 11.3 players.
My embedding code is autogenerated for all fonts and looks like this:
// GENERATED FILE - DO NOT EDIT
package {
import flash.display.Sprite;
import flash.text.Font;
[SWF(width="800", height="600", backgroundColor="#FFFFFF", frameRate="30")]
public class BUDMO extends Sprite {
[Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMO.ttf',
mimeType="application/x-font",
fontName='embedded_BUDMO',
unicodeRange='U+0000-U+00FF',
embedAsCFF='true',
fontWeight='normal',
fontStyle='normal')]
public static var embedded_BUDMO:Class;
[Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMOB.ttf',
mimeType="application/x-font",
fontName='embedded_BUDMO',
unicodeRange='U+0000-U+00FF',
embedAsCFF='true',
fontWeight='bold',
fontStyle='normal')]
public static var embedded_BUDMO_Bold:Class;
trace("Registering font embedded_BUDMO");
Font.registerFont(embedded_BUDMO);
trace("Registering font embedded_BUDMO_Bold");
Font.registerFont(embedded_BUDMO_Bold);
The code is compiled like so: mxmlc --static-link-runtime-shared-libraries -output <swf_file> <as3_file>. There are no warnings.
So...what do I try next?I will close my own question by saying that if I convert the TTF files to OpenType, the problem goes away. I would have preferred not to bang my head on this particular wall, but at least I have a workaround now.
-
Hi,
I'm using LTC Bodoni (via TypeKit) on my website and now I'm working on my digital portfolio: basically HTMl5+CSS, packed with Baker Framework to be published on Apple Store.
I would use the font with @font-face.
I'm wondering if the licence of Bauer Bodoni allows this kind of use.
I want ot be sure before buying the font...
On Bauer Bodoni webpage (http://store2.adobe.com/cfusion/store/html/index.cfm?store=OLS-IT&event=displayFontPackage &code=1294) Embedding licence is set to Editable for this font: so I could embed the font in a digital document and "the embedded font can then be used by the recipient of the electronic document to view, print and further edit or modify the text and structure of the document in which it is embedded."
Using a font inside an app is a little bit different: my final file is not a real document, it's an app. But the recipient (final user) will not be able to modify the document or use the font in no way, because it will be embedded inside the app.
Does someone have any idea?
Does licence cover use inside app or not?
Thanks!
maurizioilpiac,
You may try a search for embedding font in this forum and in other forums, such as these:
http://forums.adobe.com/community/design_development/printdesign?view=discussions
http://forums.adobe.com/community/design_development/design?view=discussions
http://forums.adobe.com/community/design_development/webdesign?view=discussions
You may also narrow the search to Dov Isaacs, or hope that he will see and post in this thread (soon). -
Hi
I am going round in circles with embedded fonts! I am using Flash on a Mac. When I embed my fonts and publish all looks good, I have embedded GG Superscript Sans and GG Subscript Sans. I am using Arial (not embedded). I have drawn text boxes and used the check options
When viewing the site in Safari on the Mac I get perfection, subs, supers and bold. But in Windows (and Puffin on my iphone) the subs and supers do not show up. The bold does (<b> tag in external text file).
The AS3 code in the flash swf is;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
import flash.text.StyleSheet;
// requests
var c21specheadReq:URLRequest = new URLRequest("c21spechead.txt");
var c21specbox1Req:URLRequest = new URLRequest("c21specbox1.txt");
var c21specbox2Req:URLRequest = new URLRequest("c21specbox2.txt");
var cssReq:URLRequest = new URLRequest("styles.css");
// loaders
var c21specheadLoader:URLLoader = new URLLoader();
var c21specbox1Loader:URLLoader = new URLLoader();
var c21specbox2Loader:URLLoader = new URLLoader();
var cssLoader:URLLoader = new URLLoader();
// listeners
c21specheadLoader.addEventListener(Event.COMPLETE, c21specheadLoaded);
c21specbox1Loader.addEventListener(Event.COMPLETE, c21specbox1Loaded);
c21specbox2Loader.addEventListener(Event.COMPLETE, c21specbox2Loaded);
cssLoader.addEventListener(Event.COMPLETE, cssLoaded);
function c21specheadLoaded(event:Event):void {
txtspec_txt.htmlText = c21specheadLoader.data;
function c21specbox1Loaded(event:Event):void {
txtbox1_txt.htmlText = c21specbox1Loader.data;
function c21specbox2Loaded(event:Event):void {
txtbox2_txt.htmlText = c21specbox2Loader.data;
function cssLoaded(event:Event):void {
var sheet:StyleSheet = new StyleSheet();
sheet.parseCSS(cssLoader.data);
txtspec_txt.styleSheet = sheet;
txtbox1_txt.styleSheet = sheet;
txtbox2_txt.styleSheet = sheet;
// Load the files
c21specheadLoader.load(c21specheadReq);
c21specbox1Loader.load(c21specbox1Req);
c21specbox2Loader.load(c21specbox2Req);
cssLoader.load(cssReq);
The text file looks like this;
(g) When atoms share pairs of electrons, they form covalent bonds.
These bonds between atoms are strong.
Some covalently bonded substances consist of simple molecules such as
H<font face = 'GG Subscript Sans'>2</font>,
Cl<font face = 'GG Subscript Sans'>2</font>,
O<font face = 'GG Subscript Sans'>2</font>,
HCl, H<font face = 'GG Subscript Sans'>2</font>O,
NH<font face = 'GG Subscript Sans'>3</font>
and CH<font face = 'GG Subscript Sans'>4</font>.
Others have giant covalent structures (macromolecules), such as diamond and silicon dioxide.
<b>(i) The electrons in the highest occupied energy levels (outer shell)
of metal atoms are delocalised and so free to move through the whole structure.
This corresponds to a structure of positive ions with electrons between the
ions holding them together by strong electrostatic attractions. </b>
The stylesheet is embarrassingly small!
body {
background-color: white;
font-family:'Arial';
img {
border-width: 0;
I'm trying for functionality before I decorate.
Frustratingly, when playing with the checkboxes for the property inspecto for my text box I DID create a version that had subscript and superscript working in BOTH windows and mac browsers; BUT the BOLD stopped at that point.
Very frustrating.
I'd be delighted if someone could point me to a solution.
Thanks
MarkOK - it now works using Puffin Browser on my iphone, which seems to produce the same results as Windows browsers.
I have changed to a TT font (Garamond) and embedded regular and bold versions.
Very odd that this now cures the sub super problem.
Lesson learned; embed all fonts used, slightly more cumbersome swf but functional.
Now to look through the fonts for one that I like, Verdana is not my favourite!
Any logic to my solution would be grateful!
Mark -
Error "This web part was unable to load"
Hi!
I'm designing workflow in Sharepoint designer 2013 for Project Server. I have 3 stages. In second stage I have "start a task process (task outcome to variable: outcome)" and in "transition to stage" I have:
If variable: outcome equalls approved
go to third stage
else
go to first stage
I receive a new task and I click "rejected". Then I refresh this page "Project Detail Pages - Workflow Stage Status" and I get this error:
Workflow Status
This Web Part was unable to load.
Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: c2780c9c-323c-20cd-dc2e-02cf3e2bd3d3
For more information, contact your Project Web App administrator.
How do I solve this? Workflow goes back to first stage and everything else seems to work (In my first stage I have wait for project submit and if I click submit, workflow goes to second stage and that web part reloads fine).
Best regards
ParkeljI found a way to handle this issue. Webpart is not able to capture the movement to the last stage in the same phase. You can easily move back to a stage in the other Phase. e.g.,
Phase 2: Stage 2 -> Phase 2: Stage 1 (Issue)
Phase 2: Stage 2 -> Phase 1: Any Stage ()
You can add a new stage in previous phase and in the Transition to Stage segment put a Go to Stage action to your desired stage.
The flow will be
Phase 2: Stage 2 -> Phase 1: Transition Stage -> Phase 2: Stage 1
By doing this the Workflow status will work fine but the only trade off will be an additional Phase movement will be displayed in the workflow visualization (marked in red in the below image).
I hope it will help you guys.
Maybe you are looking for
-
I need to change my account information on iTunes?
How do I change my account information on iTunes?
-
Joining multiple views from different HANA systems
Hi We are on Business suite on HANA environment ;that means ECC , CRM , BW on different HANA DB / instances. For reporting ; i would like to combine calculation / analytical views from these different systems. Any thoughts on approach? Thanks in adv
-
Pop-Up at startup on Dreamweaver CC
I get a pop-up at the startup of Dreamweaver CC everytime I start it. It doesn't seem to interfere with anything except my OCD (LOL) The Document Type "" will not be added because it uses a file extension that is already associated with a prior Docum
-
Can't watch the game live on my pc i paid to watch it can't
i got my Digital Pass to watch it live and i cant watch ( Dragon vs Storms )
-
User Defined Metrics stop Collecting
Just wondering if anyone else has this issue, Grid 10.2.0.4, agent 10.2.0.1 agent (soon to be replaced with 10.2.0.4). I create a userdefined metric and it runs according to its schedule. As soon as it fires though it stops collecting. I'm just wonde