This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ftrasterize generate large fonts

Hi,
I am trying to generate a Arial font with size = 200. I am working with startwar and bbb, but the code limits the size to 100. Someone knows why this limit ?

I am trying to recompile ftrasterize and change this code.

//
        // Not a fixed size so check to see if the size is reasonable.
        //
        if((pParams->iSize <= 0) || (pParams->iSize > 100))
        {
            fprintf(stderr, "%s: The font size must be from 1 to 100, "
                "inclusive.\n", pParams->pcAppName);
            return(false);
        }


If someone could send me some help I would appreciate.

Thanks in advance.

  • Hi.
    I changed the code from this: if((pParams->iSize <= 0) || (pParams->iSize > 100)) -> to this: if((pParams->iSize <= 0) || (pParams->iSize > 200))

    But, now, I am getting error on this line:


    if(iOpt > 254)
    {
    fprintf(stderr, "%s: Character '%c' was larger than 256 "
    "bytes!\n", pParams->pcAppName,
    (int)pGlyph->ulCodePoint);
    return(false);
    }
    So, still can not create fonts larger than 100pt.
    If someone could send me some help I would appreciate.

    Thanks in advance.
  • I've never seen a ftrasterize utility in StarterWare. I think that is more of a StellarisWare thing. Now it would be TivaWare. Asking in that forum might get a better response. Past StellarWare thread:

    e2e.ti.com/.../71175
    Stellaris Graphics Libary: ftrasterize Error - 'Character '@' was larger than 256 bytes!'

    A quick look at the code would suggest to me that a 8-bit integer is used to store the length of the data block. That means that the 256 bytes is a pretty hard limit. Unless you change the format to use 16-bits. That would mean your would have to change the parser on your target. I think that is the grlib/string.c.