Increasing Text Size in HTML

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Re: Increasing Text Size in HTML

    Anyone?
    ab1301 Guest

  2. Similar Questions and Discussions

    1. Increasing partition size
      Hi, I have a Windows Server 2003 server. I was wondering, if I add hard drive space to the server, can I increase the size of the C: drive...
    2. Increasing ppi with out increasing the size of.....
      the image. how do i increase the ppi with out affecting the size of the image. for ex. if i have an image set at 5 in x 7 in and the ppi is at 175,...
    3. Why are my .eps files increasing in size?
      Eps files that were originally made in Freehand and are around 41k in size or increasing to 600k just by saving them from Illustrator CS to another...
    4. File size increasing with versions?
      I just exported a FH10 file that was 228k to FH9 and it turned into 72k. Anyone know what gives? That is a sizable difference. Would it be even...
    5. Increasing font size gets blocky
      Hi, Newbie! I have created some text with no fill. I have exported this text as a png file to Swish for flash animation. It sits on top of...
  3. #2

    Default Re: Increasing Text Size in HTML

    Can you explain what you want in more detail? I do not know what "zoom in a browser" means.

    Tracy
    ntsiii Guest

  4. #3

    Default Re: Increasing Text Size in HTML

    I think he means using the WebKit component, how do you do a text sizing zoom. I don't know the answer off the top of my head.
    slaingod Guest

  5. #4

    Default Re: Increasing Text Size in HTML

    Ah, thanks. I missed that this was AIR. I can't help there.
    Tracy
    ntsiii Guest

  6. #5

    Default Re: Increasing Text Size in HTML

    Yeah, I am talking about an Air application. I am displaying html files in an
    mx:HTML component. The text displayed in the Air application seems small. I
    would like to make it bigger, without altering the html files.

    ab1301 Guest

  7. #6

    Default Re: Increasing Text Size in HTML

    Attached is my solution to this problem. I call the function on the html's
    locationChange event. Its really hacky, and it doesn't work perfectly, but I
    can't waste any more time trying to figure this out. There has to be a better
    way to do this: #1, I shouldn't have to go into the style sheets in the actual
    html document to enlarge the text rendered in the AIR app. #2, even if I do,
    there has to be a better way of doing it than regexp.

    In the Flex 3 Help, there is a page titled "Manipulating an HTML stylesheet
    from ActionScript," but that only addresses changing already existing CSS rules
    using their index numbers. This assumes that the document you are viewing has
    CSS rules to begin with, and that you already know the index number for the
    rules you want to change. There is a cryptic statement at the end of the help,
    which says "Keep in mind that code can add styles to the page after the
    HTMLLoader object dispatches the complete event." It would be nice to see some
    examples or explanation of how to do this.

    public function htmlEnlarge(target:HTML):void {
    var searchstr:RegExp = new RegExp("<html>", "i,s")
    target.htmlText = target.htmlText.replace(searchstr, "<html><style>body
    {font-family:Georgia;font-size:125%}</style>");
    }

    ab1301 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139