Project

General

Profile

Actions

Feature #17

closed

Antialiased fonts

Added by Anonymous almost 16 years ago. Updated almost 16 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

Also available in: Atom PDF