设置安装字体 [英] setup instaling font

查看:101
本文介绍了设置安装字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何通过程序设置添加一些字体?

How I can add some fonts by my program setup?

推荐答案

在这里,您可以进行以下操作:
使用C#安装项目安装字体 [ ^ ]
使用C#安装和删除字体 [ ^ ]
Here you go:
Installing font using C# setup project[^]
Installing and removing fonts using C#[^]


假定您正在使用InstallShield 11,则应遵循InstallShield帮助库主题"创建安装>组织安装文件>使用"中概述的详细信息.组件>安装字体".
Assuming you are using InstallShield 11, you should follow the details outlined in the InstallShield Help Library topic "Creating Installations > Organizing Files for Your Installation > Using Components > Installing Fonts".


PrivateFontCollection pfc = new PrivateFontCollection();
pfc.AddFontFile("C:\\Path To\\PALETX3.ttf");
label1.Font = new Font(pfc.Families[0], 16, FontStyle.Regular);


这篇关于设置安装字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆