Subpixel rendering

A simulation of subpixel rendering
"Aa" rendered in subpixel
The previous image, with the R, G and B channel separated and animated
Examples of pixel geometry, showing various arrangements of pixels and subpixels, which must be considered for subpixel rendering. LCD displays consisting of red, green, and blue subpixels (bottom right is the most typical example) are best suited to subpixel rendering.

Subpixel rendering is a method used to increase the effective resolution of a color display device. It takes advantage of each pixel's composition of individually addressable red, green, and blue components adjacent on the display matrix, called subpixels, and uses them as rendering units instead of pixels.

Subpixel rendering is primarily used for text rendering on standard DPI displays.

Despite the inherent color anomalies, it can also be used to render general graphics.

History

The origin of subpixel rendering as used today remains controversial. Apple Inc., IBM, and Microsoft patented various implementations with certain technical differences owing to the different purposes their technologies were intended for.[1]

Microsoft had several patents in the United States on subpixel rendering technology for text rendering on RGB Stripe layouts. The patents 6,219,025, 6,239,783, 6,307,566, 6,225,973, 6,243,070, 6,393,145, 6,421,054, 6,282,327, 6,624,828 were filed between October 7, 1998, and October 7, 1999, and expired on July 30, 2019.[2] Analysis of the patent by FreeType[3] indicates that the idea of subpixel rendering is not covered by the patent, but by the actual filter used as a last step to balance the color. Microsoft's patent describes the smallest filter possible that distributes each subpixel value to an equal amount of R,G, and B pixels. Any other filter will either be blurrier or will introduce color artifacts.

Apple was able to use it in Mac OS X due to a patent cross-licensing agreement.[4]

Characteristics

A single pixel on a color display is made of several subpixels, typically three arranged left-to-right as red, green, and blue (RGB). The components are easily visible when viewed with a small magnifying glass, such as a loupe. These pixel components appear as a single color to the human eye because of blurring by optics and spatial integration by nerve cells in the eye. However, the eye is much more sensitive to the location.[clarification needed] Therefore, turning on the G and B of one pixel and the R of the next pixel to the right will produce a white dot, but it will appear to be 1/3 of a pixel to the right of the white dot that would be seen from the RGB of only the first pixel. Subpixel rendering takes advantage of this to provide three times the horizontal resolution of the rendered image, though it has to blur this image to produce the correct color by ensuring the same amount of red, green, and blue are turned on as when no subpixel rendering is being done.

Subpixel rendering does not necessitate the use of antialiasing, and gives a smoother result regardless of whether antialiasing is used or not [5] since it artificially increases the resolution. However, it introduces color aliasing since subpixels are colored. Subsequent filtering applied to remove the color artifacts is a form of antialiasing, although its purpose is not smoothing jagged shapes as in conventional antialiasing.

Subpixel rendering requires the software to know the layout of the subpixels. The most common reason it is wrong is monitors that can be rotated 90 (or 180) degrees, though monitors are manufactured with other arrangements of the subpixels, such as BGR or in triangles, or with 4 colors like RGBW squares. On any such display the result of incorrect subpixel rendering will be worse than if no subpixel rendering was done at all (it will not produce color artifacts, but it will produce noisy edges).

Implementations

Apple II

Steve Gibson has claimed that the Apple II, introduced in 1977, supports an early form of subpixel rendering in its high-resolution (280×192) graphics mode.[6] The Wozniak patent only used 2 "sub-pixels".[7] The bytes that comprise the Apple II high-resolution screen buffer contain seven visible bits (each corresponding directly to a pixel) and a flag bit used to select between purple/green or blue/orange color sets. Each pixel, since it is represented by a single bit, is either on or off; there are no bits within the pixel itself for specifying color or brightness. Color is instead created as an artifact of the NTSC color encoding scheme, determined by horizontal position: pixels with even horizontal coordinates are always purple (or blue, if the flag bit is set), and odd pixels are always green (or orange). Two lit pixels next to each other are always white, regardless of whether the pair is even/odd or odd/even, and irrespective of the value of the flag bit. This is an approximation, but it is what most programmers of the time would have in mind while working with the Apple's high-resolution mode.

Gibson's example claims that because two adjacent bits make a white block, there are in fact two bits per pixel: one which activates the purple left half of the pixel, and the other which activates the green right half of the pixel. If the programmer instead activates the green right half of a pixel and the purple left half of the next pixel, then the result is a white block that is 1/2 pixel to the right, which is indeed an instance of subpixel rendering. However, it is not clear whether any programmers of the Apple II have considered the pairs of bits as pixels—instead calling each bit a pixel.

The flag bit in each byte affects color by shifting pixels half a pixel-width to the right. This half-pixel shift was exploited by some graphics software, such as HRCG (High-Resolution Character Generator), an Apple utility that displayed text using the high-resolution graphics mode, to smooth diagonals.

ClearType

Microsoft announced its subpixel rendering technology, called ClearType, at COMDEX in 1998.[8] Microsoft published a paper in May 2000, Displaced Filtering for Patterned Displays, describing the filtering behind ClearType.[9] It was then made available in Windows XP, but it was not activated by default until Windows Vista. (Windows XP OEMs, however, could and did change the default setting.)[10]

FreeType

FreeType, the library used by most current software on the X Window System, contains two open source implementations. The original implementation uses the ClearType antialiasing filters and carries the following notice: "The colour filtering algorithm of Microsoft's ClearType technology for subpixel rendering is covered by patents; for this reason the corresponding code in FreeType is disabled by default. Note that subpixel rendering per se is prior art; using a different colour filter thus easily circumvents Microsoft's patent claims."[3][2]

FreeType offers a variety of color filters. Since version 2.6.2, the default filter is light, a filter that is both normalized (value sums up to 1) and color-balanced (eliminate color fringes at the cost of resolution).[11]

Since version 2.8.1, a second implementation exists, called Harmony, that "offers high quality LCD-optimized output without resorting to ClearType techniques of resolution tripling and filtering". This is the method enabled by default. When using this method, "each color channel is generated separately after shifting the glyph outline, capitalizing on the fact that the color grids on LCD panels are shifted by a third of a pixel. This output is indistinguishable from ClearType with a light 3-tap filter."[12] Since the Harmony method does not require additional filtering, it is not covered by the ClearType patents.

CoolType

Adobe created their own subpixel renderer called CoolType, allowing them to display documents the same way across various operating systems: Windows, MacOS, Linux etc. When it was launched around the year 2001, CoolType supported a wider range of fonts than Microsoft's ClearType, which at the time was limited to TrueType fonts, whereas Adobe's CoolType also supported PostScript fonts (and their OpenType equivalent as well).[13]

macOS

Mac OS X (later OS X, now macOS) used to use subpixel rendering as well, as part of Quartz 2D. However, it was removed after the introduction of Retina displays. Unlike Microsoft's implementation, which favors a tight fit to the grid (font hinting) to maximize legibility, Apple's implementation prioritizes the shape of the glyphs as set out by their designer.[14]

See also

References

  1. ^ John Markoff, "Microsoft's Cleartype Sets Off Debate on Originality Archived 2017-04-21 at the Wayback Machine", New York Times, December 7, 1998
  2. ^ a b David Turner (June 1, 2007). "ClearType Patents, FreeType and the Unix Desktop: an explanation". Archived from the original on 2009-03-31. Retrieved April 9, 2009.
  3. ^ a b "FreeType and Patents". FreeType.org. February 13, 2018. Archived from the original on 2018-11-10. Retrieved November 29, 2018.
  4. ^ "LCD Rendering Patches". September 24, 2006. Archived from the original on 2011-06-03. Retrieved April 9, 2009.
  5. ^ "A Treatise on Font Rasterisation With an Emphasis on Free Software". 2010-09-15. Retrieved 2023-11-11.
  6. ^ "GRC - The Origins of Sub-Pixel Font Rendering". grc.com. Archived from the original on 2006-03-06. Retrieved 2006-03-02.
  7. ^ David Turner (24 Sep 20:00 2006) LCD Rendering Patches Archived 2007-02-08 at the Wayback Machine
  8. ^ ICT Bill Gates 1998 keynote comdex 1998, archived from the original on 2021-11-30, retrieved 2021-11-30
  9. ^ Platt, John; Keely, Bert; Hill, Bill; Dresevic, Bodin; Betrisey, Claude; Mitchell, Don P.; Hitchcock, Greg; Blinn, Jim; Whitted, Turner (2000-05-01). "Displaced Filtering for Patterned Displays": 296–299. Archived from the original on 2021-11-30. Retrieved 2021-11-30. {{cite journal}}: Cite journal requires |journal= (help)
  10. ^ Greg Hitchcock (with introduction by Steven Sinofsky) "Engineering Changes to ClearType in Windows 7 Archived 2012-12-18 at the Wayback Machine", MSDN blogs, June 23, 2009
  11. ^ "On slight hinting, proper text rendering, stem darkening and LCD filters". freetype.org. Archived from the original on 2020-11-12. Retrieved 2020-11-14.
  12. ^ Lemberg, Werner (2017-09-16). "Announcing FreeType 2.8.1". Archived from the original on 2019-11-16. Retrieved 2019-04-30.
  13. ^ Felici, James (April 2000) "ClearType, CoolType: The Eyes Have It", Seybold Report on Internet Publishing, Vol. 4 Issue 8
  14. ^ "The Ails Of Typographic Anti-Aliasing". November 2, 2009. Archived from the original on 2014-08-09. Retrieved 2014-08-11.

Read other articles:

Gold mine in Western Australia King of the Hills Gold MineLocationKing of the Hills Gold MineLocation in Western AustraliaLocationLeonoraStateWestern AustraliaCountryAustraliaCoordinates28°39′58″S 121°10′01″E / 28.66611°S 121.16694°E / -28.66611; 121.16694ProductionProductsGoldProduction9,545 ounces[1]Financial year2021–22HistoryOpened1990Active1990–20052011–20162018–20212022–presentOwnerCompanyRed 5 LimitedWebsitewww.red5limited.comYear o...

Єздєц ДеталіНосій Московія Печатка Олександра Невского. Після 1236 р. Монета Василя Темного. Середина XV у. Печатка Івана III. 1497 р. Єздєц — один з головних елементів державного герба Росії. Срібний вершник в синьому плащі на срібному коні, що вражає срібним списом чорного змі...

Гали́на Микола́ївна Прозуме́нщиковарос. Галина Прозуменшикова Загальна інформаціяГромадянство  СРСРНародження 26 листопада 1948(1948-11-26)Севастополь, РРФСР, СРСРСмерть 19 липня 2015(2015-07-19)[1] (66 років)Москва, Росія·хворобаПоховання Ваганьковське кладовищеПричина смерті

Resolução 218do Conselho de Segurança da ONU Data: 23 de novembro de 1965 Reunião: 1.265 Código: S/RES/218 (Documento) Votos: Prós Contras Abstenções Ausentes 7 0 4 Assunto: Questão relativa aos territórios sob administração portuguesa Resultado: Aprovada Composição do Conselho de Segurança em 1965: Membros permanentes:  República da China França Reino Unido Estados Unidos União Soviética Membros não-permanentes:  Bolívia Costa do M...

2009 studio album by MikaThe Boy Who Knew Too MuchStudio album by MikaReleased21 September 2009RecordedJune 2008–2009[1]StudioCapitol Studios(Los Angeles, California)Olympic Studios(London, England)Rocket Carousel Studio(Los Angeles, California)GenrePopLength41:06LabelCasablancaUniversal Republic[2]ProducerGreg WellsImogen HeapMikaRedOne[1]Mika chronology Songs for Sorrow(2009) The Boy Who Knew Too Much(2009) The Origin of Love(2012) Singles from The Boy Who ...

Scharmbeck Stadt Winsen (Luhe) Wappen von Scharmbeck Koordinaten: 53° 21′ N, 10° 9′ O53.34583310.14777810Koordinaten: 53° 20′ 45″ N, 10° 8′ 52″ O Höhe: 10 m ü. NHN Einwohner: 1550 (30. Jun. 2014)[1] Eingemeindung: 1. Juli 1972 Postleitzahl: 21423 Vorwahl: 04171 Scharmbeck ist ein Ortsteil von Winsen (Luhe) im Landkreis Harburg in Niedersachsen. Der Ort hat 1550 Einwohner[1] (Stand...

Peter MacOwan El autor, c. 1900Información personalNacimiento 1830Kingston upon Hull (Reino Unido) Fallecimiento 1909, 79 añosUitenhage (Sudáfrica) Residencia Inglaterra, SudáfricaNacionalidad inglésFamiliaCónyuge Amelia DayEducaciónEducado en Universidad de Londres Información profesionalÁrea botánico, micólogo, geólogo, docenteAbreviatura en botánica MacOwan[editar datos en Wikidata] Peter MacOwan (Hull, Inglaterra, 14 de noviembre 1830 - Uitenhage, provincia del Cabo...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أكتوبر 2019) مايكل هوك   معلومات شخصية الميلاد 29 نوفمبر 1965 (58 سنة)  فورت نوكس  مواطنة الولايات المتحدة  عضو في القوات الخاصة الأمريكية  الزوجة روث إنغلاند (2005...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Mercedes-Benz Kelas-XInformasiProdusenDaimler AGMasa produksiNovember 2017–Mei 2020[1]PerakitanSpanyol: Barcelona (Nissan Motor Ibérica)Bodi & rangkaKelasMid-size mewah mobil pikapTata letakFront-engine, rear-wheel-driveFront-engine, fou...

Pusat kota Mullingar (Gaeilge An Muileann gCearr, berarti «kidal») ialah sebuah kota di Republik Irlandia. Mullingar adalah ibu kota County Westmeath dan terletak di tengah Irlandia. Mullingar terkenal akan danaunya yang ada di wilayah kota, Lough Owel dan Lough Ennell, yang menarik banyak pemancing, seperti halnya Lough Derravaragh. Lough Lene juga terletak di daerah ini. Pranala luar Mullingar Chamber Diarsipkan 2009-01-10 di Wayback Machine. Artikel bertopik geografi atau tempat Republik...

Dumfries and Galloway ConstabularyMottoSemper VigiloAgency overviewFormed1948 (merger)Dissolved2013Superseding agencyPolice ScotlandJurisdictional structureOperations jurisdictionDumfries and Galloway, ScotlandMap of Dumfries and Galloway Constabulary's jurisdictionSize6,426 km²Population148,000Operational structureHeadquartersDumfriesSworn members508 + 106 Special ConstablesAgency executivePatrick Shearer QPM, Chief ConstableDivisions2FacilitiesStations19Dumfries and Galloway Constabul...

Dalam nama Tionghoa ini, nama keluarganya adalah Liu. Christina LiuLiu Yih-ju劉憶如Menteri Keuangan Republik TiongkokMasa jabatan6 Februari 2012 – 30 Mei 2012PendahuluLee Sush-derPenggantiChang Sheng-fordMenteri Dewan Perencanaan dan Pembangunan Ekonomi Republik TiongkokMasa jabatan20 Mei 2010 – 6 Februari 2012PendahuluTsai Hsun-hsiungPenggantiYiin Chii-mingAnggota Yuan LegislatifMasa jabatan1 Februari 2002 – 20 November 2007Daerah pemilihanRepublik Tiongko...

A Pennsylvania oil field in 1862 Welcome sign to Titusville, PA The oil rush in America started in Titusville, Pennsylvania, in the Oil Creek Valley when Edwin L. Drake struck rock oil there in 1859. Titusville and other towns on the shores of Oil Creek expanded rapidly as oil wells and refineries shot up across the region. Oil quickly became one of the most valuable commodities in the United States and railroads expanded into Western Pennsylvania to ship petroleum to the rest of the country....

Collegiate summer baseball league in the United States Appalachian LeagueClassificationCollegiate summer (2021–present)Rookie (1963–2020)Class D (1911–1914, 1921–1925, 1937–1955, 1957–1962)SportBaseballFounded1911PresidentDan Moushon[1]No. of teams9CountryUnited StatesMost recentchampion(s)Johnson City Doughboys (2023)Most titlesBluefield Blue Jays (14)Official websiteappyleague.com The Appalachian League is a collegiate summer baseball league that operates in the Appalach...

Broad gauge commuter rail service in Buenos Aires Province This article is about the commuter rail line. For the national railway company, see General Bartolomé Mitre Railway. Mitre LineCSR electric multiple units in Retiro, February 2015.OverviewService typeCommuter railStatusActiveLocaleBuenos Aires ProvincePredecessorCentral ArgentineFirst service1948; 75 years ago (1948)Current operator(s)SOFSEFormer operator(s)Corredores FerroviariosWebsiteMitre LineRouteTerminiRetiro ...

Химический состав Иркутской«Иркутская» — лечебно-столовая природная гидрокарбонатно-сульфатно-хлоридная магниево-натриево-кальциевая минеральная вода Сибири. Месторождение расположено в предгорье Восточных Саян в деревне Олха Шелеховского района. Разливается в ...

Untuk klub di kota Depok lainnya, lihat Persikad Depok. Persikad 1999Nama lengkapPersatuan Sepakbola Indonesia Kota Depok 1999JulukanSerigala MargondaBerdiri27 April 2018[1]StadionStadion Mini Sukatani, Depok, Jawa Barat(Kapasitas: 500)Pemilik Atet Handiyana Juliandri Sihombing, SHPresiden Atet Handiyana Juliandri Sihombing, SHManager Cahyo P BudimanPelatih Abdul Malik Karim UsupLigaLiga 3 Jawa BaratKelompok suporter Persikad Fans Curva Sud (PFCS) Ultras Persikad Kostum kandang Kostum...

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Junho de 2012) Indicação da união entre os conjuntos A e B Em teoria dos conjuntos, a união de dois ou mais conjuntos é o conjunto dos elementos que pertencem a pelo menos um destes conjuntos. Em outras palavras, a união de dois conj...

Clade of arthropods ArachnomorphaTemporal range: Cambrian - Recent PreꞒ Ꞓ O S D C P T J K Pg N Fossil of Bellacartwrightia calliteles, a trilobite Lychas variatus, a scorpion chelicerate Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Arthropoda Clade: ArachnomorphaLameere, 1890 Subgroups †Artiopoda †Megacheira ?†Marrellomorpha Chelicerata Synonyms Arachnata Paulus, 1979 Palaeopoda Packard, 1903 Arachnomorpha is a proposed subdivision or clade of Arthropoda, co...

Paliam SwaroopamAt the entrance of the Paliam PalaceStatus Independent Raja obeisant to the Kingdom of Cochin (1595-1631) Raja and Prime ministers under the Kingdom of Cochin (1632-1809) Independent Raja obeisant to the Kingdom of Cochin (1809-1947) CapitalChendamangalam,North ParavurCommon languagesMalayalam SanskritReligion Hinduism ChristianityJudaismBuddhismIslamToday part ofIndia Paliam Swaroopam Paliath Achan or Paliyath Achan is the name given to the male members of the Paliam roy...