首页 \ 问答 \ 关于SDK的问题(Question about SDK's)

关于SDK的问题(Question about SDK's)

我不确定这是不是一个愚蠢的问题。

我一直在使用Mongodb,发现自己在不同的应用程序中编写相同的逻辑,用于选择集合和删除等简单的东西。

如果我使用所有Mongodb函数基于datamapper模式创建了一些类,那么这是一个基本的SDK吗?

如果我完全错了,有人可以帮我定义SDK吗?


I am not sure if this is a stupid question or not.

I have been working with Mongodb and found myself writing the same logic in different applications for simple stuff like selecting collections and drop them etc.

If I made some classes based on the datamapper pattern using all the Mongodb functions would this be a basic SDK ?

If I am totally wrong could someone help me out in defining a SDK ?


原文:https://stackoverflow.com/questions/6870602
更新时间:2023-02-24 06:02

最满意答案

问题似乎出现在/etc/fonts/conf.d/中的fontconfig规则中,而不是JavaFX中。 我还没有找到解决这个问题,但使用fc-match会产生相同的结果

fc-match sans:regular:roman 
"LiberationMono-Regular.ttf": "Liberation Mono" "Regular"

我在另一个论坛上发现了一个类似的问题: 字体问题,monospace用于serif和sans-serif系列 ,但没有解决方案。

添加字体配置文件,例如/etc/fonts/conf.d/88-liberation-hack.conf将解决问题

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<alias>
  <family>sans-serif</family>
  <prefer><family>Liberation Sans</family></prefer>
</alias>

<alias>
  <family>serif</family>
  <prefer><family>Liberation Serif</family></prefer>
</alias>


<alias>
  <family>monospace</family>
  <prefer><family>Liberation Mono</family></prefer>
</alias>

</fontconfig>

The problem appears to be in the fontconfig rules in /etc/fonts/conf.d/, not JavaFX. I've not yet been able to figure out to fix this, but using fc-match produces the same results

fc-match sans:regular:roman 
"LiberationMono-Regular.ttf": "Liberation Mono" "Regular"

I found a similar problem on another forum: Font issue, monospace used for serif and sans-serif families, but without a solution.

Adding a font config file, e.g. /etc/fonts/conf.d/88-liberation-hack.conf will fix the issue

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<alias>
  <family>sans-serif</family>
  <prefer><family>Liberation Sans</family></prefer>
</alias>

<alias>
  <family>serif</family>
  <prefer><family>Liberation Serif</family></prefer>
</alias>


<alias>
  <family>monospace</family>
  <prefer><family>Liberation Mono</family></prefer>
</alias>

</fontconfig>

相关问答

更多
  • 我需要传递scale参数,而不是使用getTextBounds,因为字体大小不会与canvas一起线性缩放: 这里的解释 var c = new Matrix() val c_array = new Array[Float](9) // The main function that draw the text def drawRuleCode(canvas: Canvas, ...): Unit = { var box_width = getBoxWidth() canvas.getMatr ...
  • TheDraw是一个老的dos应用程序, 可以满足您的需求。 我在网上看到了最新的Windows替代品,比如AcidDraw和PabloDraw ,但我不知道。 希望其中一个仍然有用。 TheDraw is an old dos application wich does what you need. I see on the Net more recent alternatives for windows, like AcidDraw and PabloDraw, but I do not know th ...
  • 刚刚发现Android没有Courier New,它的“monospace”字体并不是真正的等宽字体。 您可以将一种字体添加到项目的资源中,但如果您希望其他应用程序正确呈现该文件,则您的设备也会过于根。 所以基本上,我不可能做我需要的事情。 无论如何,谢谢你的帮助...... Just found out that Android doesn't have Courier New and it's "monospace" font is not really monospaced. You can add ...
  • 由于普通的 Font.MONOSPACED逻辑字体在我的系统上有问题,我的解决方案是列出我系统上可用的所有字体: System.out.println("Listing available fonts"); for (Font f : GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts()) System.out.println("- "+f); 尝试单声道和打字机 - 声称是普通的或普通的或任何不倾斜的东西,直到我发现一个非常 ...
  • 我刚刚意识到Courier New也是等宽的,它似乎工作得很好。 I just realized that Courier New is monospaced too and it seems to work pretty fine.
  • 1)@ Eng.Fouad这是n_times在这里提到(@camickr,@StanislavL)用于风格化和高亮度测试使用JTextComponent,它支持 2)@ Eng.Fouad你是从JTextArea输出的 来自代码 import java.awt.*; import javax.swing.*; import javax.swing.text.*; public class TextPaneHighlighting { private static final long seria ...
  • 答案是否定的,我相信Droid Sans Mono是平台中唯一可用的等宽字体。 看到: android-sdk-linux/platforms/android-17/data/fonts/system_fonts.xml 和 android-sdk-linux/platforms/android-17/data/fonts/fonts.mk 当然,你可以推出自己的产品。 Answer is no, I believe Droid Sans Mono is the only monospaced font ...
  • 问题似乎出现在/etc/fonts/conf.d/中的fontconfig规则中,而不是JavaFX中。 我还没有找到解决这个问题,但使用fc-match会产生相同的结果 fc-match sans:regular:roman "LiberationMono-Regular.ttf": "Liberation Mono" "Regular" 我在另一个论坛上发现了一个类似的问题: 字体问题,monospace用于serif和sans-serif系列 ,但没有解决方案。 添加字体配置文件,例如/etc/f ...
  • 解决方法是使用“Segoe UI”字体系列,它具有等宽数字,并且相当类似。 A work around is to use the "Segoe UI" font family instead, which has monospaced numbers, and is reasonably similar.
  • 这是一个可怕的错误,它是由等宽字体粗体引起的。 将重量设置为常规可以解决此问题。 myLabel.font = UIFont.monospacedDigitSystemFont(ofSize: 15, weight: .regular) 如果您仍想使用粗体字体,请考虑使用非标准等宽字体。 This is a horrible bug and it's caused by the monospaced font being bold. Setting the weight to regular solves ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)