在ubuntu下如何添加windows的字体

Linux操作系统安装字体教程 在开始安装字体之前,首先需要确认字体文件的格式。常见的字体文件格式包括TrueType字体(.ttf)、OpenType字体(.otf)等。您可以从字体提供商处获得字体文件,或在网上下载合适的字体文件。安装完成后,您就可以在相关的软件中使用新安装的字体了。在Linux系统中,字体文件通常存放在特定的字体目录中。在将字体文件复制到字体目录后,需要更新系统的字体缓存,以便系统能够识别新安装的字体。将下载或获得的字体文件复制到刚刚创建的字体目录中。在软件中选择字体列表,应该能够看到您刚刚安装的字体。 阅读详情
其实很早就对linux中少得可怜的字体感到可悲了,无奈只能把在windows中用惯了的字体移到linux下,像宋体啊、黑体啊等等……

方法如下:

第一步:将windows下喜欢的字体文件copy到一个文件夹中,例如将XP里WINDOWS/FONTS中的字体文件(本人比较贪心,把整个文件夹copy了过来……),在linux中命名为xpfonts

第二步:将copy到的字体文件夹copy到系统字体文件夹中并且修改权限

         sudo cp {存放xpfonts的路径}/xpfonts   /usr/share/fonts/

         sudo chmod u+rwx /usr/share/fonts/xpfonts/*

第三步:建立字体缓存

         cd /usr/share/fonts/xpfonts

         sudo mkfontscale

    sudo mkfontdir

    sudo fc-cache -fv

这样就OK了,系统里面已经有了你想要的字体,这样用openoffice的时候再也不会遇到字体太少的尴尬了……如果看不到的话,sudo shutdown -r now试一下?



====

http://zhidao.baidu.com/question/89289430.html?an=0&si=1

plt 字体 times new roman Ubuntu添加windows启动项 这里写自定义目录标题Ubuntu添加windows启动项这个不管用其他命令plt 字体 times new roman Ubuntu添加windows启动项 通过u盘Ubuntu引导,安装相关工具修复grub 开机依然没有windows sudo update-grub OK 这个不管用 sudo pacman -Sy 更新软件源后,就有了 sudo pacman -Ss font-manager sudo pacman -S font-manager 其他命令 sudo pacman -Sy #更新A 阅读详情

相关推荐

【ESP32-S3量产指南】基于Flash下载工具实现Release模式Flash加密与安全配置

本文详细介绍了ESP32-S3量产阶段如何通过Flash下载工具实现Release模式下的Flash加密与安全配置。从加密模式选择、工具配置到分区表优化,提供了一套完整的量产安全解决方案,帮助开发者有效防止固件泄露和篡改,确保设备安全。

weixin_28730131的博客 230

在Linux系统上添加新字体

由于Linux系统是开源的,可以支持多种语言和字体,所以我们可以找到许多可供使用的字体。在添加新字体之前,我们需要确定我们将要添加的字体格式,以便选择正确的方法和工具。要添加字体,您需要知道所下载的字体的字体格式。请将所下载的字体文件保存在您希望添加字体的位置。如果您能够在工具栏或字体列表中找到新的字体,那么您已经成功添加了新字体。在Ubuntu系统中,您可以通过单击左上角的“活动”图标并搜索“字体”来打开字体安装程序。您可以在许多网站上找到可供下载的字体,但是请注意下载合法的字体。四、使用终端添加字体。

m0_62428592的博客 3855

openEuler 22.03 安装及配置Gitlab容器

在 openEuler 22.03 上安装及配置Gitlab容器

轻步玉阶 3313

【经验分享】如何给linux安装中文字体

进入 将文件复制出来,并打包为zip文件查看已安装的字体查看服务器是否有:/usr/share/fonts这个目录,如果有,那么看下一步,如果没有,就创建创建字体目录 引入字体文件将前面准备好的字体放到这个目录将打包好的zip文件拷贝到目录下并解压: 2.4 第四步 进入 Linux 字体库,建立 scale 文件 接着执行 指令生成字体索引 如果报错找不到 —— 执行安装字体索引(可选) 2.5 第五步 :运行 fc-cache 输入指令: 3 验证安装结果

Xcong_Zhu的博客 4843

搭建Java集成开发环境IntelliJ IDEA

package net.huawei.p01.t02;/** * 功能:输出一条信息 * 作者:华卫 * 日期:2022年03月24日 */ public class HelloWorld { public static void main(String[] args) { // arguments System.out.println("Hello Java World~"); } }

qq_67308063的博客 475

从零搭建IoT数据中台:STM32+WebSocket实现边缘设备与Web端实时双向通信

本文详细介绍了如何从零搭建基于STM32和WebSocket协议的IoT数据中台,实现边缘设备与Web端的实时双向通信。通过硬件选型、协议设计、服务器搭建及安全优化,提供了一套低延迟、高并发的企业级解决方案,适用于智能农业和工业监控等场景。

tea88的博客 748

在当前的Linux上安装字体

在当前的Linux上并安装字体

qq_43420088的博客 3769

radsystems的激活(破解)和使用

上个文章讲述了radsystems的下载,但是只有30天的免费使用权,这篇文章将会讲解如何破解激活radsystems。注意:如果不想去官网下载的话,点击安装包的exe文件。不要急,打开我给你们的安装包,点击crack。如果提示done则完成(我的是激活过的)注意:这是8.7版本的。点击generate。

weixin_65144487的博客 3516

Android 自定义字体(引入外部字体)

做Android开发的时候,一些软件会要求一些特殊字体,我们需要引入外部的ttf格式的字体到程序中,具体操作步骤为: 在安卓应用程序的目录assets中新建fonts目录,将我们需要使用的ttf字体文件复制进去,然后代码: // 得到TextView控件对象 TextView textView = (TextView) findViewById(R.id.custom); // 将字体文件

小单的博客专栏 1万+

华为OD机试 - 取出尽量少的球 - 感谢@吴修柯反馈(Python/JS/C/C++ 双机位A卷 200分)

本专栏收录于《华为OD机试真题(Python/JS/C/C++)》。刷的越多,抽中的概率越大,私信哪吒,备注华为OD,加入华为OD刷题交流群,每一题都有详细的答题思路、详细的代码注释、3个测试用例、为什么这道题采用XX算法、XX算法的适用场景,发现新题目,随时更新。感谢@吴修柯反馈,2025-03-22,A卷200分考试真题。某部门开展 Family Day 开放日活动,其中有个从桶里取球的游戏。有 N 个容量一样的小桶等距排开,且每个小桶都默认装了数量不等的小球,每个小桶装的小球数量记录在数组 bucke

学Java,找哪吒 1485

015、架构_配置文件_管理节点(proxymanager.ini)

该配置文件中的参数在后台配置,两种生效方式:*所有参数重启生效。*部分参数可以使用工具dbtool动态生效。动态生效命令为:dbtool-pm-load-config。配置文件“proxymanager.ini”用于设置元数据管理模块的信息。文件路径为“~/etc”。配置文件“proxymanager.ini”是普通的文本文件。默认值proxymanager-alarmconfutf8.txt。配置错误或不配置,PM无法连接MDS,无法服务。获取元数据失败超时处理时间。异常时请求启动对等回滚。

Oracle/MySQL 到 国产信创数据库|迁移 · 调优 · 信创替换 328

ubuntu添加windows字体

ubuntu添加windows字体 ubuntu中自带的字体虽然相当丰富,但是有时候还是希望自己的ubun

li_hai的专栏 3975

贪婪投影三角化算法

贪婪投影三角化算法是一种利用点云数据进行曲面重建的方法。其基本思想是通过迭代地连接点云中的邻近点来生成三角形,从而构建出整个表面。这种方法被称为“贪婪”,因为它在每一步仅考虑当前最优的策略,而不考虑全局的最优性。

twnkie的博客 1567

ubuntu 添加windows字体

1、从Windows的字体文件夹(C:\Windows\Fonts) 中寻找自己喜欢的中文字体: 雅黑:msyh 黑体:SimHei 宋体:SimSun 华文细黑:STXihei 华文楷体:STKaiti 华文宋体:STSong 华文仿宋:STFangsong 华文彩云:STCaiyun 华文琥珀:STHupo 华文隶书:STLiti 华文行楷:STXi...

weixin_33834910的博客 244

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

向Ubuntu 添加WINDOWS中的中文字体

<br />Ubuntu系统中增加Windows中文字体<br />豆豆网   技术应用频道   2008年06月08日    社区交流关键字: 智能拼音 WPA Apache配置 Ubuntu桌面 Ubuntu 8.04 TELNET内容摘要:用下面的方法可以很方便的在Ubuntu8.04中添加自己喜欢的字体。<br />  Ubuntu8.04中的中文字体太少,对平时使用惯了Windows的人来说非常不便。<br />  用下面的方法可以很方便的在Ubuntu8.04中添加自己喜欢的字体。<br /> 

tangwing的专栏 1051

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

linux 添加微软字体,如何给Ubuntu添加Windows及Mac字体?

由于Ubuntu是一个免费的Linux系统,所以对于一些非常好的字体在系统中并不存在,为了让文字可以在Ubuntu上更好的呈现,可以将Windows中的字体或者是Mac 系统中的字体安装到ubuntu中。以下为具体的安装步骤:1、准备好Windows和Mac中的字体包,自己从系统中提取或者网上下载都可以。需要注意的是并非所有的自己都能在Ubuntu中顺利的安装,比如Windows中.fon 格式的...

weixin_39967812的博客 319

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【转】如何给Ubuntu添加Windows及Mac字体?

由于Ubuntu是一个免费的Linux系统,所以对于一些非常好的字体在系统中并不存在,为了让文字可以在Ubuntu上更好的呈现,可以将Windows中的字体或者是Mac 系统中的字体安装到ubuntu中。以下为具体的安装步骤: 1、准备好Windows和Mac中的字体包,自己从系统中提取或者网上下载都可以。 需要注意的是并非所有的自己都能在Ubuntu中顺利的安装,比如Windows中.fon

张博的Blog 1685

ubuntu安装openoffice+添加windows字体

1、下载openoffice: 官网下载:http://www.openoffice.org/download/index.html 2、下载完解压到/usr/src下 3、执行命令: cd/usr/src/openoffice.../DEBS/#(这里的文件夹...

chengxiji6739的博客 501

Ubuntu12.04添加windows字体

编程喜欢YaHei Consolas Hybrid,但是Ubuntu下没有,参考博客的内容,试着在Ubuntu12.04下安装字体,成功 以安装 YaHei Consolas Hybrid 1.12.ttf 为例,以下步骤需要在root的权限下进行   (1)在/usr/share/fonts/truetype/目录下 建立一个新的目录 YaHei (2)将YaHei Consolas H

ruglcc's blog 4716

[笔记] ubuntu下添加windows的字体

方法如下:第一步:将windows下喜欢的字体文件copy到一个文件夹中,例如将XP里WINDOWS/FONTS中的字体文件(本人比较贪心,把整个文件夹copy了过来……),在linux中命名为xpfonts第二步:将copy到的字体文件夹copy到系统字体文件夹中并且修改权限 sudo cp {存放xpfonts的路径}/xpfonts /usr/share/fonts/ ...

weixin_34189116的博客 92

在ubuntu下如何添加windows的字体(罗臭宝ubuntu安装xp字体后乱码 )

其实很早就对linux中少得可怜的字体感到可悲了,无奈只能把在windows中用惯了的字体移到linux下,像宋体啊、黑体啊等等…… 方法如下: 第一步:将windows下喜欢的字体文件copy到一个文件夹中,例如将XP里WINDOWS/FONTS中的字体文件(本人比较贪心,把整个文件夹copy了过来……),在linux中命名为xpfonts 第二步:将copy到的字体文件

RealPresence and Media Collaboration 专栏 562
上一篇: Selection block comment
下一篇: echo -e 在shell script 方式下运行的问题
Alan0521
博客等级 码龄19年 77粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值