Remote Desktop Connection font

本文介绍了解决远程桌面连接中字体出现锯齿化的方法,包括调整连接速度和启用FontSmoothing选项。

远程桌面连接远程机器的时候,字体会出现锯齿化。 可以设置远程桌面连接的连接速度或选择Font Smoothing

 

gapinyc@DESKTOP-9QS7RL5:/mnt/c/Users/pc$ curl -v http://192.168.110.204:8080/AI-rotator.html curl -v http://192.168.110.204:8079/ * Trying 192.168.110.204:8080... * connect to 192.168.110.204 port 8080 failed: Connection refused * Failed to connect to 192.168.110.204 port 8080 after 0 ms: Connection refused * Closing connection 0 curl: (7) Failed to connect to 192.168.110.204 port 8080 after 0 ms: Connection refused * Trying 192.168.110.204:8079... * Connected to 192.168.110.204 (192.168.110.204) port 8079 (#0) > GET / HTTP/1.1 > Host: 192.168.110.204:8079 > User-Agent: curl/7.81.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: nginx/1.18.0 (Ubuntu) < Date: Thu, 27 Nov 2025 07:45:40 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 8366 < Connection: keep-alive < <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>🚚 智能配送看板</title> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #0a1120; color: #e0f7fa; font-family: 'Roboto', sans-serif; overflow: hidden; height: 100vh; font-size: 14px; } .container { width: 95%; max-width: 1600px; margin: 20px auto; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); } header { background: #001f3f; color: #00eaff; padding: 12px 20px; font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid #00eaff; display: flex; justify-content: space-between; align-items: center; } .title { white-space: nowrap; } .clock { font-size: 16px; color: #aaffff; } .scroll-container { height: calc(100vh - 120px); overflow: hidden; position: relative; } .scroll-dual { display: flex; flex-direction: column; transition: transform 0s; } .scroll-content { display: flex; flex-direction: column; } .waybill-item { background: rgba(13, 96, 144, 0.3); margin: 6px 8px; padding: 12px; border-radius: 10px; backdrop-filter: blur(6px); border: 1px solid rgba(0, 234, 255, 0.15); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); } .driver-info { font-size: 16px; font-weight: bold; color: #00eaff; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; } .waybill-id { font-size: 13px; color: #aaffff; } .progress-line { display: flex; align-items: center; } .stop-point { width: 24px; height: 24px; border-radius: 50%; margin: 0 6px; display: flex; justify-content: center; align-items: center; font-weight: bold; color: white; font-size: 12px; } .stop-point.completed { background: #52c41a; } .stop-point.current { background: #faad14; } .stop-point.upcoming { background: #cccccc; color: #333; } .line { flex-grow: 1; height: 3px; background: rgba(200, 200, 200, 0.4); border-radius: 1.5px; } .footer { text-align: center; padding: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.2); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; } .empty-state { text-align: center; padding: 40px 20px; color: #aaa; font-size: 16px; } </style> </head> <body> <div class="container"> <header> <div class="title">🚀 智能物流 · 实时配送看板</div> <div class="clock" id="clock">加载中...</div> </header> <div class="scroll-container" id="scrollContainer"> <div class="scroll-dual" id="dualContent"> <div class="scroll-content" id="content"></div> <div class="scroll-content" id="contentClone"></div> </div> </div> <div class="footer"> <span>📊 当前共 <strong id="totalCount">0</strong> 个配送任务</span> <span>最后更新: <span id="lastUpdate">加载中...</span></span> </div> </div> <script> const content = document.getElementById('content'); const contentClone = document.getElementById('contentClone'); const dualContent = document.getElementById('dualContent'); const totalCount = document.getElementById('totalCount'); const lastUpdate = document.getElementById('lastUpdate'); const clockEl = document.getElementById('clock'); let currentY = 0; let scrollInterval; // 更新时钟 function updateClock() { const now = new Date(); const dateStr = now.toLocaleDateString(); const timeStr = now.toLocaleTimeString(); const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']; const weekday = weekdays[now.getDay()]; clockEl.textContent = `${dateStr} ${timeStr} ${weekday}`; } setInterval(updateClock, 1000); updateClock(); // 获取数据 async function fetchData() { try { const res = await fetch('/api/data'); return await res.json(); } catch (err) { console.error("获取数据失败:", err); return []; } } // 渲染到指定元素 function renderToElement(el, data) { el.innerHTML = ''; if (!data || data.length === 0) { el.innerHTML = '<div class="empty-state">📭 当前无配送中的运单</div>'; return; } const fragment = document.createDocumentFragment(); data.forEach(order => { const item = document.createElement('div'); item.className = 'waybill-item'; item.dataset.waybillId = order.waybill_id; // 司机信息 const driverInfo = document.createElement('div'); driverInfo.className = 'driver-info'; const driverText = document.createElement('span'); driverText.textContent = `🚛 ${order.driver_name}`; const waybillId = document.createElement('span'); waybillId.className = 'waybill-id'; waybillId.textContent = `#${order.waybill_id}`; driverInfo.appendChild(driverText); driverInfo.appendChild(waybillId); // 进度条 const progressLine = document.createElement('div'); progressLine.className = 'progress-line'; (order.stops || []).forEach((stop, index) => { const point = document.createElement('div'); point.className = 'stop-point'; if (stop.is_completed) point.classList.add('completed'); else if (stop.is_current) point.classList.add('current'); else point.classList.add('upcoming'); point.textContent = stop.sort || (index + 1); progressLine.appendChild(point); // 添加连接线(最后一个不加) if (index < (order.stops?.length || 0) - 1) { const line = document.createElement('div'); line.className = 'line'; progressLine.appendChild(line); } }); item.appendChild(driverInfo); item.appendChild(progressLine); fragment.appendChild(item); }); el.appendChild(fragment); } // 启动无限滚动(匀速平滑) function startInfiniteScroll() { clearInterval(scrollInterval); scrollInterval = setInterval(() => { const singleHeight = content.scrollHeight; if (singleHeight <= 0) return; currentY += 1.5; // 滚动速度 dualContent.style.transform = `translateY(-${currentY}px)`; // 回到起点,实现无缝循环 if (currentY >= singleHeight * 2) { dualContent.style.transition = 'none'; dualContent.style.transform = 'translateY(0)'; currentY = 0; // 恢复过渡(保持性能) requestAnimationFrame(() => { requestAnimationFrame(() => { dualContent.style.transition = 'transform 0s'; }); }); } }, 50); // 每 50ms 移动一次 } // 初始化 async function init() { let data = await fetchData(); renderToElement(content, data); renderToElement(contentClone, data); totalCount.textContent = data.length; lastUpdate.textContent = new Date().toLocaleTimeString(); startInfiniteScroll(); // 每 10 秒自动刷新数据 setInterval(async () => { data = await fetchData(); renderToElement(content, data); renderToElement(contentClone, data); totalCount.textContent = data.length; lastUpdate.textContent = new Date().toLocaleTimeString(); }, 10000); } // 启动应用 init(); </script> </body> * Connection #0 to host 192.168.110.204 left intact </html>gapinyc@DESKTOP-9QS7RL5:/mnt/c/Users/pc$ ubuntu@VM-0-6-ubuntu:~$ sudo netstat -tulnp | grep -E ':(8080|8088|8079)' tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 492708/sshd: ubuntu tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 492708/sshd: ubuntu tcp6 0 0 :::8088 :::* LISTEN 492708/sshd: ubuntu tcp6 0 0 :::8080 :::* LISTEN 492708/sshd: ubuntu ubuntu@VM-0-6-ubuntu:~$ sudo netstat -tulnp | grep -E ':(8080|8079|8088)' tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 492708/sshd: ubuntu tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 492708/sshd: ubuntu tcp6 0 0 :::8088 :::* LISTEN 492708/sshd: ubuntu tcp6 0 0 :::8080 :::* LISTEN 492708/sshd: ubuntu ubuntu@VM-0-6-ubuntu:~$
11-28
考虑柔性负荷的综合能源系统低碳经济优化调度【考虑碳交易机制】(Matlab代码实现)内容概要:本文围绕“考虑柔性负荷的综合能源系统低碳经济优化调度”展开,重点研究在碳交易机制下如何实现综合能源系统的低碳化与经济性协同优化。通过构建包含风电、光伏、储能、柔性负荷等多种能源形式的系统模型,结合碳交易成本与能源调度成本,提出优化调度策略,以降低碳排放并提升系统运行经济性。文中采用Matlab进行仿真代码实现,验证了所提模型在平衡能源供需、平抑可再生能源波动、引导柔性负荷参与调度等方面的有效性,为低碳能源系统的设计与运行提供了技术支撑。; 适合人群:具备一定电力系统、能源系统背景,熟悉Matlab编程,从事能源优化、低碳调度、综合能源系统等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①研究碳交易机制对综合能源系统调度决策的影响;②实现柔性负荷在削峰填谷、促进可再生能源消纳中的作用;③掌握基于Matlab的能源系统建模与优化求解方法;④为实际综合能源项目提供低碳经济调度方案参考。; 阅读建议:建议读者结合Matlab代码深入理解模型构建与求解过程,重点关注目标函数设计、约束条件设置及碳交易成本的量化方式,可进一步扩展至多能互补、需求响应等场景进行二次开发与仿真验证。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值