• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Lanai
  4. Rendering Hints for EA

Rendering Hints for EA

  • Created by Ajit Ghaisas, last modified on Apr 15, 2020
HintKeyValueSupported for EA?Status
Rendering HintKEY_RENDERINGVALUE_RENDER_DEFAULTYesDone


VALUE_RENDER_SPEEDNo


VALUE_RENDER_QUALITYNo





AntialiasingKEY_ANTIALIASINGVALUE_ANTIALIAS_DEFAULTYesDone


VALUE_ANTIALIAS_OFFYesDone


VALUE_ANTIALIAS_ONYes

Done.

Test passed -

jdk/sun/java2d/pipe/Test7027667.java

java/awt/geom/Line2D/AALineTest.java

Also verified using J2DDemo


Some tests fail due to pixel accuracy tolerance.

Also, some some combination with AA does not work. Being worked upon separately.






Text AntialiasingKEY_TEXT_ANTIALIASINGVALUE_TEXT_ANTIALIAS_DEFAULTYesDone. Works in Font2D


VALUE_TEXT_ANTIALIAS_OFFYesDone. Works in Font2D


VALUE_TEXT_ANTIALIAS_ONYesDone. Works in Font2D


VALUE_TEXT_ANTIALIAS_GASPNoWorks in Font2D


VALUE_TEXT_ANTIALIAS_LCD_HRGBNoWorks in Font2D


VALUE_TEXT_ANTIALIAS_LCD_HBGRNoWorks in Font2D


VALUE_TEXT_ANTIALIAS_LCD_VRGBNoWorks in Font2D


VALUE_TEXT_ANTIALIAS_LCD_VBGRNoWorks in Font2D





Font Fractional metricsKEY_FRACTIONALMETRICSVALUE_FRACTIONALMETRICS_DEFAULTYesDone. Works in Font2D


VALUE_FRACTIONALMETRICS_OFFYesDone. Works in Font2D


VALUE_FRACTIONALMETRICS_ONNoWorks in Font2D





DitheringKEY_DITHERINGVALUE_DITHER_DEFAULTYes

Dither option not present in Font2D, J2DDemo



VALUE_DITHER_DISABLEYes

Dither option not present in Font2D, J2DDemo



VALUE_DITHER_ENABLEYes

Dither option not present in Font2D, J2DDemo

Test sun/java2d/marlin/OpenJDKFillBug

uses this hint and test passes with metal pipeline






InterpolationKEY_INTERPOLATIONVALUE_INTERPOLATION_NEAREST_NEIGHBORYes

test/jdk/sun/java2d/pipe/InterpolationQualityTest.java

OGL = passed, metal = failed



VALUE_INTERPOLATION_BILINEARYes

test/jdk/sun/java2d/pipe/InterpolationQualityTest.java

OGL = failed, metal = failed


test/jdk/sun/java2d/SunGraphics2D/DrawImageBilinear.java

OGL = passed, metal = passed



VALUE_INTERPOLATION_BICUBICNo

This was decided to be a non-blocker for EA - and will be worked upon separately - JDK-8242351


test/jdk/sun/java2d/pipe/InterpolationQualityTest.java

OGL = failed, metal = failed





Alpha interpolation KEY_ALPHA_INTERPOLATIONVALUE_ALPHA_INTERPOLATION_DEFAULTYesWorks - tested by setting this value on a sample program.


VALUE_ALPHA_INTERPOLATION_SPEEDNo


VALUE_ALPHA_INTERPOLATION_QUALITYNo





Color RenderingKEY_COLOR_RENDERINGVALUE_COLOR_RENDER_DEFAULTYesWorks - tested by setting this value on a sample program.


VALUE_COLOR_RENDER_SPEEDNo


VALUE_COLOR_RENDER_QUALITYNo





Stroke Normalization controlKEY_STROKE_CONTROLVALUE_STROKE_DEFAULTYesWorks - tested by setting this value on a sample program.


VALUE_STROKE_NORMALIZENo


VALUE_STROKE_PURENo





Image Scaling HintKEY_RESOLUTION_VARIANTVALUE_RESOLUTION_VARIANT_DEFAULTYes

Works -Jtreg test passes

test/jdk/java/awt/image/multiresolution/MultiResolutionRenderingHintsTest.java



VALUE_RESOLUTION_VARIANT_BASENo


VALUE_RESOLUTION_VARIANT_SIZE_FITNo


VALUE_RESOLUTION_VARIANT_DPI_FITNo






KEY_TEXT_ANTIALIAS_LCD_CONTRAST

(used private in sun.awt.SunHints)

Actual hints to be used is

KEY_TEXT_LCD_CONTRAST which is used in Font2D

INTKEY_AATEXT_LCD_CONTRASTNo

LCD Contrast value present in Font2D but since surface seems to be not opaque, even if antialiasing hints LCD_HBGR, LCD_HRGB, are used, the glyphs are rendered via Grayscale so LCD contrast is noop

Standalone test written to use this hint is passing the contrast value in the hint to LCD text rendering

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 185, "requestCorrelationId": "3e8c41a5f2f38c76"}