caleeli / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

Antialiasing via code #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. im tried to get a formula antialised via style with as3

What is the expected output? What do you see instead?
- With <math mathvariant="Arial"><mtext>Test me</mtext></math> there seems no 
problem
All is looking well. Antialising.

- with as3 theres no antialising
example:
    import learnmath.mathml.formula.*;

    var xmlData:XML = XML("<mrow><mtext>some mathml</mtext></mrow>");
    var mathML:MathML = new MathML(xmlData, loaderInfo.url);

    var style = new Style();
    style.size= 24;
    style.mathvariant = "Arial";
    style.color = "#000000";

    var pannel:Sprite = new Sprite()
    this.addChild(pannel);

    mathML.drawFormula(pannel, style, callbackFunct);

    // after the formula is build, call back with the dimensions
    function callbackFunct(r:Rectangle){
        pannel.x = (550-r.width)/2;
        pannel.y = (400-r.height)/2;
    }

What version of the product are you using? On what operating system?
1.4

Please provide any additional information below.

Original issue reported on code.google.com by r...@sicherpit.de on 8 Feb 2011 at 12:44

GoogleCodeExporter commented 9 years ago
I my code I have for all text antiAliasType=ADVANCED.
But the font must be embeded (In this case Arial). My components doesn't embed 
"Arial". 

I will add a method pass to the component what font have you been embeded.
This seems ok for you ?

alex

Original comment by ionel.alexandru@gmail.com on 7 Mar 2011 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by ionel.alexandru@gmail.com on 22 Mar 2011 at 6:37