[if !mso]> [if !mso]> [if gte mso 9]>

[EDK DEV] RE: [EDK DEV] StringToImage(...) of HII font protocol always generates a 800*600 BLT image when the Blt parameter is NULL?

Subject: [EDK DEV] RE: [EDK DEV] StringToImage(...) of HII font protocol always generates a 800*600 BLT image when the Blt parameter is NULL?

From: ming chen <ming.chen@authentec.com>

To: dev@edk.tianocore.org

Date: 2009-08-12 12:32:08

Ting,

 

For some unknown reason, I did not receive your mail directly…

I have used the method you recommended.  Thanks for the clarificationJ

 

 

Best regards,

Ming


From: Bian, Martin
Sent: Friday, August 07, 2009 8:35 PM
To: Chen, Ming
Cc: Chen, Cloud
Subject: FW: [EDK DEV] StringToImage(...) of HII font protocol always generates a 800*600 BLT image when the Blt parameter is NULL?

 

 

From: yeting [mailto:ting.ye@intel.com]
Sent: Friday, August 07, 2009 2:33 AM
To: dev@edk.tianocore.org
Subject: RE: [EDK DEV] StringToImage(...) of HII font protocol always generates a 800*600 BLT image when the Blt parameter is NULL?

 

Ming,

 

Thanks for reporting this.

Since the UEFI specification does not define and limit how the new allocated BLT image should be, e.g. a fixed size image or a suited size image, current solution (800*600) is implementation specific. If you are intended to render the string to a suited size image, you may allocate a buffer and input it as Blt->Bitmap for printing.

 

Best regards,

- Ting

 


From: ming chen [mailto:ming.chen@authentec.com]
Sent: Thursday, August 06, 2009 7:33 PM
To: dev@edk.tianocore.org
Subject: [EDK DEV] [EDK DEV] StringToImage(...) of HII font protocol always generates a 800*600 BLT image when the Blt parameter is NULL?

 

Hi,

 

I have tried to transfer a NULL for *Blt to the StringToImage(...) interface which always returns a 800*600 BLT image buffer even if the string is a very simple one, like "Hello world!".

 

I looked through the Edk\Sample\Universal\UserInterface\UefiHiiDataBase\Dxe\Font.c file. It seems that the allocated BLT image has hard-coded width and height (800 and 600). Is it an arranged behavior for this case? If yes, it will make little sense to it's callers. What I expected is a BLT image buffer that has a suited size for the string itself. For example, a 256*32 BLT image should be enough for "Hello world!" with default system font information.

 

 

Best regards,
Ming

 

NOTE: The information in this message is intended for the personal and confidential use of the designated recipient(s) named above. To the extent the recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an obligation of confidentiality, with AuthenTec, then this message and/or any attachments shall be considered confidential information and subject to the confidentiality terms of that agreement.  If the reader of this message is not the intended recipient named above, you are notified that you have received this document in error, and any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this document in error, please delete the original message and notify the sender immediately.

 

Thank you.

 

AuthenTec, Inc.  http://www.authentec.com

 

 

[if gte mso 9]>

?

NOTE: The information in this message is intended for the personal and confidential use of the designated recipient(s) named above. To the extent the recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an obligation of confidentiality, with AuthenTec, then this message and/or any attachments shall be considered confidential information and subject to the confidentiality terms of that agreement.? If the reader of this message is not the intended recipient named above, you are notified that you have received this document in error, and any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this document in error, please delete the original message and notify the sender immediately.

?

Thank you.

?

AuthenTec, Inc.? http://www.authentec.com

?

?

Share to Facebook Share to Twitter Share to Google Plus Share to Delicious