Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Source/config.h
Source/libgnustep*Info.plist
Tools/XGCommonFont.m
Tools/xdnd.c
*~
36 changes: 36 additions & 0 deletions Headers/cairo/CairoFontAssetInstaller.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
CairoFontAssetInstaller.h

Copyright (C) 2003 Free Software Foundation, Inc.

By: Gregory John Casamento <greg.casamento@gmail.com>
Date: October 4, 2025

This file is part of GNUstep.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; see the file COPYING.LIB.
If not, see <http://www.gnu.org/licenses/> or write to the
Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/

#ifndef CairoFontAssetInstaller_h
#define CairoFontAssetInstaller_h

#include "fontconfig/FCFontAssetInstaller.h"

@interface CairoFontAssetInstaller : FCFontAssetInstaller
@end

#endif
34 changes: 34 additions & 0 deletions Headers/fontconfig/FCFontAssetInstaller.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Interface of class FCFontAssetInstaller
Copyright (C) 2024 Free Software Foundation, Inc.

By: Gregory John Casamento <greg.casamento@gmail.com>
Date: September 5, 2025

This file is part of the GNUstep Library.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/

#ifndef FCFONTASSETINSTALLER_H
#define FCFONTASSETINSTALLER_H

#import <Foundation/NSObject.h>
#import <GNUstepGUI/GSFontAssetInstaller.h>

@interface FCFontAssetInstaller : GSFontAssetInstaller
@end

#endif
3 changes: 3 additions & 0 deletions Source/cairo/CairoContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include "cairo/CairoPDFSurface.h"
#include "cairo/CairoFontInfo.h"
#include "cairo/CairoFontEnumerator.h"
#include "cairo/CairoFontAssetInstaller.h"

#include "config.h"

#define CGSTATE ((CairoGState *)gstate)
Expand Down Expand Up @@ -88,6 +90,7 @@ + (void) initializeBackend

[GSFontEnumerator setDefaultClass: [CairoFontEnumerator class]];
[GSFontInfo setDefaultClass: [CairoFontInfo class]];
[GSFontAssetInstaller setDefaultClass: [CairoFontAssetInstaller class]];
}

+ (Class) GStateClass
Expand Down
29 changes: 29 additions & 0 deletions Source/cairo/CairoFontAssetInstaller.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Implementation of class CairoFontAssetInstaller
Copyright (C) 2025 Free Software Foundation, Inc.

By: Gregory John Casamento <greg.casamento@gmail.com>
Date: October 4, 2025

This file is part of the GNUstep Library.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
*/

#import <Foundation/Foundation.h>
#import "cairo/CairoFontAssetInstaller.h"

@implementation CairoFontAssetInstaller
@end
2 changes: 2 additions & 0 deletions Source/cairo/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ cairo_OBJC_FILES = CairoSurface.m \
CairoGState.m \
CairoContext.m \
CairoFontEnumerator.m \
CairoFontAssetInstaller.m \
CairoFaceInfo.m \
CairoPSSurface.m \
CairoPDFSurface.m \
../fontconfig/FCFaceInfo.m \
../fontconfig/FCFontEnumerator.m \
../fontconfig/FCFontInfo.m \
../fontconfig/FCFontAssetInstaller.m \


ifeq ($(BUILD_SERVER),x11)
Expand Down
Loading
Loading