Project

General

Profile

Actions

Feature #17

closed

Antialiased fonts

Added by Anonymous over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
12/16/2008
Due date:
12/21/2008
% Done:

100%

Estimated time:

Description

Could somebody implement support for antialiased fonts for this plugin.

I attach here my quick and dirty patch that probably won't work with all configurations.

--- ttxtsubs-0.0.6.orig/ttxtsubsdisplay.c       2008-12-14 22:34:49.000000000 +0
200
+++ ttxtsubs-0.0.6/ttxtsubsdisplay.c    2008-12-16 20:40:27.000000000 +0200
@@ -456,8 +456,13 @@ void cTtxtSubsDisplay::ShowOSD(void)
         left = SCREENRIGHT - SIDEMARGIN - w;
         break;
       }
-    tArea area = {left, y, left+w-1, y+ROWH-1, 2};
-    areas[numAreas++] = area;
+    if (Setup.AntiAlias) {
+      tArea area = {left, y, left+w-1, y+ROWH-1, 8};
+      areas[numAreas++] = area;
+    } else {
+      tArea area = {left, y, left+w-1, y+ROWH-1, 2};
+      areas[numAreas++] = area;
+    }
     y += (ROWINCR + globals.lineSpacing());
   }
   if (mOsd->CanHandleAreas(areas, numAreas) != oeOk) {


Files

ttxtsubs-8bpp.patch (3.08 KB) ttxtsubs-8bpp.patch Patch to set color depth to 8 bpp to allow AntiAlising if possible etobi, 12/18/2008 12:38 AM
Actions #1

Updated by etobi over 15 years ago

  • Due date set to 12/21/2008
  • Assignee set to etobi
Actions #2

Updated by etobi over 15 years ago

I kinda improved this patch, so that it falls back to a lower color depth if needed.
Can anyone please check this?

Actions #3

Updated by Anonymous over 15 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF