I can't see exactly what you are proposing since you aren't providing a diff against openjdk master.
In so far as I could traverse your git repository and find anything I'm concerned by seeing references to "x11Display" in the freetypeScaler.c file which is actually used on Windows too .. And I think you misunderstand how Java defines point sizes. The point size specified to the Font constructor should be scaled from pixels only according to the transform on the Java Graphics2D instance. NOT in response to any desktop DPI setting. -phil. On 9/28/2011 6:35 AM, Aekold Helbrass wrote:
Hi All! I am working on fixing openjdk font rendering on linux (because currently it's just horrible!), and I've done working proof-of-concept: https://github.com/Helbrass/openjdk-fontfix So now I would like to move from dirty workaround to proper clean and working implementation. And I have some questions about code that surrounds font rendering and ideas behind that code. First question is: FreetypeFontScaler.createScalerContext() is not doing anything, just acting as bridge, and all logic is in FileFontStrike constructor. And I have to pass DPI to createScalerContext(). Should I change FileFontStrike and pass DPI to any scaler implementation or make FreetypeFontScaler.createScalerContext() read DPI itself because T2KFontScaler doesn't need DPI or can read it itself? Thanx!
